[Top][All Lists]
[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
- [ft] putting text in a box, Dave Calkins, 2010/01/19
- Re: [ft] putting text in a box,
Werner LEMBERG <=
- Re: [ft] putting text in a box, Dave Calkins, 2010/01/20
- Re: [ft] putting text in a box, Werner LEMBERG, 2010/01/20
- Re: [ft] putting text in a box, Dave Calkins, 2010/01/20
- Re: [ft] putting text in a box, Werner LEMBERG, 2010/01/20
- Re: [ft] putting text in a box, dave, 2010/01/20
- Re: [ft] putting text in a box, Werner LEMBERG, 2010/01/20
- Re: [ft] putting text in a box, dave, 2010/01/20
- Re: [ft] putting text in a box, Werner LEMBERG, 2010/01/21
- RE: [ft] putting text in a box, David Bevan, 2010/01/21
- Re: [ft] putting text in a box, Werner LEMBERG, 2010/01/21