freetype
[Top][All Lists]
Advanced

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

Re: [ft] Vertical metrics from FT_GlyphRec - possible?


From: David Turner
Subject: Re: [ft] Vertical metrics from FT_GlyphRec - possible?
Date: Mon, 21 May 2007 10:44:15 +0200

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" <address@hidden> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype




reply via email to

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