Draw: Fixed issue with CJK characters metrics

git-svn-id: svn://ultimatepp.org/upp/trunk@5635 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-12-09 17:41:32 +00:00
parent e90ce8af2d
commit ba8eb81f07
5 changed files with 69 additions and 59 deletions

View file

@ -180,6 +180,7 @@ GlyphInfo GetGlyphInfoSys(Font font, int chr)
FT_Face face = FTFace(font, NULL);
gi.lspc = gi.rspc = 0;
gi.width = 0x8000;
LLOG("GetGlyphInfoSys " << font << " " << (char)chr << " " << FormatIntHex(chr));
if(face) {
LTIMING("GetGlyphInfoSys 2");
int glyph_index = FT_Get_Char_Index(face, chr);