freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Cache and Metrics


From: Glenn Peterman
Subject: [Devel] Cache and Metrics
Date: Mon, 12 May 2003 15:29:22 -0500

Using the cache FTC_ImageCache_Lookup, which is set to load just the outline
of a TT font, how can I determine the Ascent and Descent of a glyph?
If I use FT_Load_Glyph, it looks like I can get the info I want from the
GlyphSlot Metrics field. (horiBearingY is ascent and horiBearingY - height =
descent if height > horiBearingY)
Rendering will give me the info I want, but the size I am eventually going
to render at will not be held in the cache for long, so I don't want to
render while trying to determine a given string's limits.

Thanks,
Glenn Peterman




reply via email to

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