freetype
[Top][All Lists]
Advanced

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

Re: [ft] Font Metrics


From: David Turner
Subject: Re: [ft] Font Metrics
Date: Thu, 19 Oct 2006 22:31:30 +0200

On Thu, 19 Oct 2006 20:35:34 +0200, "Martin Olbrich" <address@hidden> said:
> Hello,
> 
> can noone help me with the font metrics?
> 
Have you tried reading the FreeType docs ? they should provide you with
sufficient information to answer your questions.

Regards,

- David Turner
- The FreeType Project  (www.freetype.org)

> martin.
> 
> 
> I wrote:
> 
> > Hi,
> > 
> > I am a bit confused about the number and scaling of different font metrics.
> > 
> > For my program I am searching for the maximum distance above/under the 
> > baseline of a given font in the scaling of the pixels after rendering. I 
> > have tried it with "Face.bbox.yMin / yMax", but I dont know about the 
> > right scaling to get it to pixel units.
> > Do I need the "Face.units_per_EM" for that?
> > 
> > The other metric I need is the width of the string. I calculated it as 
> > the sum over "Face.glyph.advance.x/64" of all glyphs. ( with 
> > "FT_Set_Char_Size(face, fontSize*64., fontSize*64., 100, 100);" )
> > Is that the correct value?
> > 
> > Thank you for any help.
> > martin.
> > 
> > 
> > _______________________________________________
> > Freetype mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/freetype
> > 
> 
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype
- David Turner
- The FreeType Project  (www.freetype.org)





reply via email to

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