[poppler] how to find the true bounding box of a glyph
Josh Richardson
jric at chegg.com
Thu Mar 8 15:00:05 PST 2012
On 3/8/12 2:40 PM, "Albert Astals Cid" <aacid at kde.org> wrote:
>El Dimecres, 7 de març de 2012, a les 13:14:51, Josh Richardson va
>escriure:
>> Since HTML positions from the top of a span, not the baseline, it's very
>> important for me to know the true ascent of a font. The odd font is not
>> accurate with the reported value of this metric, and the incorrect value
>> seems to be the value that's stored in Poppler's GfxFont. Any
>>suggestions
>> on how to find the true value? I think free type 2 has functions that
>> allow me to get at the true bounding box by tracing the arcs of
>>component
>> splines, so I'm considering linking against that, but I'd love to know
>>if
>> there is a cleaner way to do it.
>
>I don't think there's another way than actually looking at the real font
>(i.e.
>using freetype).
Cool, turns out it's not as bad as I thought, since Freetype is already
linked in.
--josh
More information about the poppler
mailing list