[Top][All Lists]
[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 16:49:22 +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.
>
> I am using FT 2.3.4. Should I try CVS?
Hmm, I'm not aware of a problem with FT 2.3.4. Have you tried
ftstring with the font?
Werner
- Re: [ft] Getting width of space, Werner LEMBERG, 2007/05/18
- Re: [ft] Getting width of space, Peter Weilbacher, 2007/05/18
- Re: [ft] Getting width of space,
Werner LEMBERG <=
- Re: [ft] Getting width of space, Peter Weilbacher, 2007/05/18
- Re: [ft] Getting width of space, Werner LEMBERG, 2007/05/18
- Re: [ft] Getting width of space, Peter Weilbacher, 2007/05/19
- Re: [ft] Getting width of space, Peter Weilbacher, 2007/05/19
- Re: [ft] Getting width of space, Werner LEMBERG, 2007/05/20
- Re: [ft] Getting width of space, Peter Weilbacher, 2007/05/21