From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MqQgy-000150-QI for mharc-grub-devel@gnu.org; Wed, 23 Sep 2009 08:11:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqQgw-00011m-Am for grub-devel@gnu.org; Wed, 23 Sep 2009 08:11:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqQgp-0000we-PT for grub-devel@gnu.org; Wed, 23 Sep 2009 08:11:24 -0400 Received: from [199.232.76.173] (port=34196 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqQgp-0000w7-1E for grub-devel@gnu.org; Wed, 23 Sep 2009 08:11:19 -0400 Received: from mail-pz0-f183.google.com ([209.85.222.183]:45514) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqQgm-0003iR-OY for grub-devel@gnu.org; Wed, 23 Sep 2009 08:11:17 -0400 Received: by pzk13 with SMTP id 13so511239pzk.25 for ; Wed, 23 Sep 2009 05:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0uGEhdzatjwsQRBd+KB33s7dTwGGnYiRCWrYHEaMdWE=; b=O47DhmtVESGUA47CKu8q6EnbJTQerHAdwYxOR9qyB/2jgQJ7aYCle3D4MrrHkqWWq1 5iCtfumX183pedaOLavyM29U5HFaoVkGsqe6FMSyxXPfpi1/4sb7H9bpMKNLb1NTlnc1 vOoEp/mxRJwvSkHjE59I058wOG291+JMdAPt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Wpxfyg1cyCRYGQhdM5VdhMG97Gsp3oZSh4Dn0sqTcGeYT/0lilVWLrU4DqBgN7dTk+ 6cxgf64gRkMlpR+oSMkvlXBq0JnHdMQUAi48EYa8qDBK5DJRWFDu6gqoP1Bz3ePkygfO kQPChHBu/j/w61iCGwH/QRp/u4+1eZooVJBB8= MIME-Version: 1.0 Received: by 10.140.170.7 with SMTP id s7mr124202rve.170.1253707874677; Wed, 23 Sep 2009 05:11:14 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Sep 2009 20:11:14 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 12:11:26 -0000 On Wed, Sep 23, 2009 at 7:29 PM, Michal Suchanek wrot= e: > IIRC traditionally X is used for height and m for width. > > Either way it is a unit that is not the same when measured vertically > and horizontally, and it is not possible to draw a square using this > unit. > > Also when you want to make a box that accomodates n lines of text you > need a unit for line-height. That is, you need to take into account > the maximum rise of characters like =C3=85=C3=95=E1=B9=8C=E1=B9=8E, and m= aximum fall of > characters like =E1=B6=98=C9=80 and also include some space between the l= ines so > that they do not merge visually. > > I guess it would be quite common to either display a box that can > accommodate a piece of text or a box that fits the most lines of text > possible in a given space so it would be useful to have units for > that. Hi, Height includes ascent, descent and leading, the value is the same for all characters, we only need to choose the reference character for width calculation. --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/