Huw Davies : gdi32: In a Hebrew locale the last char of a symbol font is reported as 0xf896 rather than 0xf0ff.
Alexandre Julliard
julliard at winehq.org
Wed May 7 15:18:15 CDT 2014
Module: wine
Branch: master
Commit: c66f0019fff40b4755e217ce555d5147b78d523f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c66f0019fff40b4755e217ce555d5147b78d523f
Author: Huw Davies <huw at codeweavers.com>
Date: Wed May 7 14:51:11 2014 +0100
gdi32: In a Hebrew locale the last char of a symbol font is reported as 0xf896 rather than 0xf0ff.
---
dlls/gdi32/freetype.c | 3 +++
dlls/gdi32/tests/font.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 54241a5..fae9ffe 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -7390,6 +7390,9 @@ static BOOL get_outline_text_metrics(GdiFont *font)
TM.tmFirstChar = 0;
switch(GetACP())
{
+ case 1255: /* Hebrew */
+ TM.tmLastChar = 0xf896;
+ break;
case 1257: /* Baltic */
TM.tmLastChar = 0xf8fd;
break;
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index fa3b420..255771a 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -3543,6 +3543,9 @@ static void test_text_metrics(const LOGFONTA *lf, const NEWTEXTMETRICA *ntm)
expect_first_W = 0;
switch(GetACP())
{
+ case 1255: /* Hebrew */
+ expect_last_W = 0xf896;
+ break;
case 1257: /* Baltic */
expect_last_W = 0xf8fd;
break;
More information about the wine-cvs
mailing list