freetype
[Top][All Lists]
Advanced

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

Re: [ft] Getting width of space


From: Werner LEMBERG
Subject: Re: [ft] Getting width of space
Date: Fri, 18 May 2007 09:24:17 +0200 (CEST)

> I use code like this
>  
>    gid = FT_Get_Char_Index(face, 'x');
>    FT_Load_Glyph(face, gid, FT_LOAD_DEFAULT);
>    xWidth = face->glyph->metrics.width;
>  
> successfully to compute the widths of different characters. I tried
> to do the same for spaces (using ' ' instead of 'x') but that always
> gives me a width of zero.

Which FreeType version?  Please try the latest one; there has been
problems with the metrics of the space glyph.


    Werner




reply via email to

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