Hi David,
I haven't tried this yet (I was a little wary of using that flag as
about the only thing the docs say about it is to not use it), but
will that make the metrics available in the cache somehow? I see that
advance has both an x and a y - will the y hold the vertical advance?
Or will the cache return just the vertical advance if that is what I
request? I guess I can just try for now and see what happens...
--Brady
On May 21, 2007, at 1:44 AM, David Turner wrote:
Hello Brady,
did you try loading the glyph with the FT_LOAD_VERTICAL_METRICS flag ?
I believe it should solve your problem
Hope this helps,
- David Turner
- The FreeType Project (www.freetype.org)
On Thu, 3 May 2007 08:17:52 -0700, "Brady Duga" <[EMAIL PROTECTED]> said:
I wanted to give the caching code in FreeType a whirl (seemed like a
better idea then writing my own), but I am having some trouble
figuring out how to get all the data I need out of it. Originally, I
was just loading every glyph I needed when I needed it. I would
render it if I was drawing, otherwise I would just load it to get its
metrics. In that scenario, I would use the metrics exposed by the
glyph slot, which has vertical metrics when they are available in the
font. That all works, but when I look at using the cache, I see I get
back a glyph, not a glyph slot. The glyph itself does not seem to
have vertical metrics. Specifically, there is no vertical advance,
just a generic "advance" which seems to correspond to the horizontal.
Is there a way to get the vertical metrics as well? Or should I load
(but not render) the glyph to get the metrics, then grab the bitmap
from the cache when I want render the text?
--Brady
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype