freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] How to determine font ascent


From: Andrew Zabolotny
Subject: Re: [ft] How to determine font ascent
Date: Thu, 13 Oct 2005 00:13:52 +0400

On Wed, 12 Oct 2005 08:59:19 +0200 (CEST)
Werner LEMBERG <address@hidden> wrote:

> The concept of `vertically centering' is wrong IMHO.  Instead, I
> suggest you arrange the menu items as if they were normal text, this
> is, you put the glyphs of a line onto its baseline, and the glyphs one
> line above with a distance of FT_Face->height from the previous
> baseline.  This assures that
Thanks, I'll try your suggestion. At first sight it looked unbeseeming
but after thinking a little what you say seems sane.

-- 
Greetings,
   Andrew

P.S. I tried the DejaVu font in GIMP and the glyphs are actually
vertically centered in the textbox, so if GIMP uses the 'height' value
it seems to work good.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]