freetype
[Top][All Lists]
Advanced

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

Re: [ft] Size of space character


From: Werner LEMBERG
Subject: Re: [ft] Size of space character
Date: Sun, 15 Feb 2009 15:29:47 +0100 (CET)

> I'm writting a tool which return size (width and height) of glyph
> (character). Everything works fine for every character, but not for
> space character ;-( How to get size of space?
>
> [...]
> 
> FT_Glyph_Get_CBox (glyph, FT_GLYPH_BBOX_PIXELS, &bbox);

That you get a zero CBox is correct -- there is NO outline at all!
What do you expect?  A space glyph usually has a non-zero advance
width (and height for vertical layout).


    Werner




reply via email to

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