freetype
[Top][All Lists]
Advanced

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

Re: [ft] putting text in a box


From: Werner LEMBERG
Subject: Re: [ft] putting text in a box
Date: Wed, 20 Jan 2010 05:48:30 +0100 (CET)

> It seems like the bounding box calculation is always correct.  The
> problem is that the descender I'm querying is for the font face in
> general which I assume accounts for every glyph in the font.

If you have a negative value in the bbox, this is the amount below the
baseline.

> Any suggestions on computing the descenders for individual glyphs?

Calculate the bbox for individual glyphs.  In most cases, a cbox
should be sufficient, BTW.

> I took a look at the glyph metrics from FreeType, but these didn't
> seem to help.  For example, I found a case where "E" seemed to
> report a descender (comparing height and vertBearingY).

It's easily possible that the glyph `E' descends slightly (due to
serifs, for example).


    Werner




reply via email to

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