mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
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:
parent
e90ce8af2d
commit
ba8eb81f07
5 changed files with 69 additions and 59 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue