> 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


_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to