[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] TT Fonts with FixedPitch flag set
From: |
Lidia Mirkin |
Subject: |
[Freetype] TT Fonts with FixedPitch flag set |
Date: |
Thu, 19 Apr 2001 16:46:37 +0100 |
hello !
I have some number of fonts that have FT_FACE_FLAG_FIXED_WIDTH flag set.I
use following pease of code in order to get glyphs width.But for these fonts
, I get same width for all the glyphs equals to 2048.
I use these values for creating PDF files.Other programs get different
values for different glyphs.
What is wrong ?
thanks,Lidia.
for (int i=0;i<0xffff && count<face->num_glyphs;i++)
{
FT_UInt glyph_index=FT_Get_Char_Index( face, i );
if (glyph_index)
{
error =
Load_Glyph(
face,
glyph_index,
FT_LOAD_NO_RECURSE | FT_LOAD_NO_BITMAP | FT_LOAD_IGNORE_TRANSFORM );
if (!error)
{
unsigned int width=(int)((glyph->metrics.horiAdvance)*scale_factor+0.5);
count++;
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freetype] TT Fonts with FixedPitch flag set,
Lidia Mirkin <=