gdi32:GetGlyphIndices marks non-existing characters incorrectly
Jeff Miller
jmiller-wine at tanner.com
Tue Mar 13 19:08:20 CDT 2007
According to MSDN and my testing, non-existing glyphs should use 0xffff
rather than 0x001f.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_4svn.asp
Jeff Miller
Tanner Research
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index db990fa..6fc6319 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3328,7 +3328,7 @@ DWORD WineEngGetGlyphIndices(GdiFont *font,
LPCWSTR lpstr, INT count,
WCHAR default_char = 0;
TEXTMETRICW textm;
- if (flags & GGI_MARK_NONEXISTING_GLYPHS) default_char = 0x001f;
/* Indicate non existence */
+ if (flags & GGI_MARK_NONEXISTING_GLYPHS) default_char = 0xffff;
/* Indicate non existence */
for(i = 0; i < count; i++)
{
More information about the wine-patches
mailing list