Henri Verbeet : usp10/tests: Add a latn shaping test with ligatures.
Alexandre Julliard
julliard at winehq.org
Mon Mar 6 15:25:08 CST 2017
Module: wine
Branch: master
Commit: 04cd6029ea7a599c78a36d6a71a4d74bef11d5de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04cd6029ea7a599c78a36d6a71a4d74bef11d5de
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Mar 2 09:38:39 2017 +0100
usp10/tests: Add a latn shaping test with ligatures.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/usp10/tests/usp10.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index c5cc401..b8c7b70 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -1185,6 +1185,13 @@ static void test_ScriptShapeOpenType(HDC hdc)
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
{0,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}} };
+ static const WCHAR test3[] = {'t', 't', 'f', 'f', 'f', 'i', 0};
+ static const shapeTest_char t3_c[] = {{0, {0, 0}}, {0, {0, 0}}, {0, {0, 0}},
+ {1, {0, 0}}, {1, {0, 0}}, {1, {0, 0}}};
+ static const shapeTest_glyph t3_g[] = {
+ {1, {{SCRIPT_JUSTIFY_CHARACTER, 1, 0, 0, 0, 0}, 0}},
+ {1, {{SCRIPT_JUSTIFY_CHARACTER, 1, 0, 0, 0, 0}, 0}}};
+
/* Hebrew */
static const WCHAR test_hebrew[] = {0x05e9, 0x05dc, 0x05d5, 0x05dd,0};
static const shapeTest_char hebrew_c[] = {{3,{0,0}},{2,{0,0}},{1,{0,0}},{0,{0,0}}};
@@ -1467,6 +1474,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
test_shape_ok(hdc, test2, 4, &Control, &State, 1, 4, t2_c, glyph_test);
+ test_valid = find_font_for_range(hdc, "Calibri", 0, test3[0], &hfont, &hfont_orig);
+ if (hfont != NULL)
+ {
+ test_shape_ok_valid(test_valid, hdc, test3, 6, &Control, &State, 0, 2, t3_c, t3_g);
+ SelectObject(hdc, hfont_orig);
+ DeleteObject(hfont);
+ }
+
test_valid = find_font_for_range(hdc, "Microsoft Sans Serif", 11, test_hebrew[0], &hfont, &hfont_orig);
if (hfont != NULL)
{
More information about the wine-cvs
mailing list