freetype
[Top][All Lists]
Advanced

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

Re: [ft] Getting width of space


From: Peter Weilbacher
Subject: Re: [ft] Getting width of space
Date: Fri, 18 May 2007 13:54:27 +0200
User-agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.1.3pre) Gecko/20070307 SeaMonkey/1.1.1+ Mnenhy/0.7.4.10002

Werner LEMBERG wrote:
>> 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.

I am using FT 2.3.4. Should I try CVS?
   Peter.




reply via email to

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