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

@ -61,7 +61,7 @@ void Draw::DrawText(int x, int y, int angle, const wchar *text, Font font,
GlyphInfo gi2 = GetGlyphInfo(font, text[i + c]);
if(!gi2.IsNormal())
break;
dd += dx ? dx[c] : gi.width;
dd += dx ? dx[c - 1] : gi.width;
c++;
gi = gi2;
}