freetype
[Top][All Lists]
Advanced

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

Re: [ft] diff Pixel height


From: Werner LEMBERG
Subject: Re: [ft] diff Pixel height
Date: Sat, 30 Jan 2010 20:13:43 +0100 (CET)

> I am setting my glyph size as 10,on 72dpi.
> 
> I assumed i will be getting a glyph height of 10 pixels, But it is
> not?

Correct.  If you specify a glyph size of 10 pixels you can expect that
it (more or less) harmonizes with other fonts rendered at a size of
10 pixels.  It is completely unrelated to the actual size of the
glyphs.  To get the real glyph dimensions, compute the glyph's CBox
(which should be sufficient in most situations).


    Werner




reply via email to

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