freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] wrong glyph image of Calibri.ttf


From: yu ze hua
Subject: [ft-devel] wrong glyph image of Calibri.ttf
Date: Mon, 11 Jun 2012 06:07:39 +0000

I create face with Calibri.ttf(this file on windows system fonts dir), and
  /* use 9pt at 96dpi */
FT_Set_Char_Size( face, 9 * 64, 0,
                            96, 0 );                /* set character size */
load a character:
    /* load glyph image into the slot (erase previous one) */
    FT_Load_Char( face, text[n], FT_LOAD_RENDER );
 
but the face->glyph->bigmap data are wrong!
 
when i change Char size to 15 or dpi(such as 90)
FT_Set_Char_Size( face, 15 * 64, 0,
                            96, 0 );      
or
FT_Set_Char_Size( face, 9 * 64, 0,
                            90, 0 );     
 then glyph image data correct.
 
there is no problem if create with face with other ttf,such as msyh.ttf
why Cailbir.ttf special? 
and what restriction between character pt and dpi?
 
btw,this issue is on pc(win7 64bit)
 
thanks,
 

reply via email to

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