*Draw: Fixed metrics issue for certain characters

git-svn-id: svn://ultimatepp.org/upp/trunk@2353 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-05-03 08:48:06 +00:00
parent fd6e36016f
commit b714cee659

View file

@ -281,7 +281,7 @@ GlyphInfo GetGlyphInfoSys(Font font, int chr)
else {
bool abca = false, abcw = false;
Buffer<ABC> abc(256);
abcw = ::GetCharABCWidths(hdc, from, from + 256 - 1, abc);
abcw = ::GetCharABCWidthsW(hdc, from, from + 256 - 1, abc);
#ifndef PLATFORM_WINCE
if(!abcw)
abca = ::GetCharABCWidthsA(hdc, from, from + 256 - 1, abc);