gdi32: In a Hebrew locale the last char of a symbol font is reported as 0xf896 rather than 0xf0ff
Huw Davies
huw at codeweavers.com
Wed May 7 08:51:11 CDT 2014
---
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 cece358..2b1f163 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -7392,6 +7392,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;
--
1.8.0
More information about the wine-patches
mailing list