[poppler] how to find the true bounding box of a glyph
Albert Astals Cid
aacid at kde.org
Thu Mar 8 14:40:40 PST 2012
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).
Albert
> TIA, --josh
More information about the poppler
mailing list