Aric Stewart : usp10/tests: Add Kannada shaping test.
Alexandre Julliard
julliard at winehq.org
Tue Nov 8 12:23:12 CST 2011
Module: wine
Branch: master
Commit: c5db60200f00966c9a6cb65a117481026433c505
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c5db60200f00966c9a6cb65a117481026433c505
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Nov 8 10:33:37 2011 -0600
usp10/tests: Add Kannada shaping test.
---
dlls/usp10/tests/usp10.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index 6655ba6..955e19d 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -843,6 +843,16 @@ static void test_ScriptShapeOpenType(HDC hdc)
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
{1,{{SCRIPT_JUSTIFY_NONE,0,0,0,0,0},0}} };
+ /* Kannada */
+ static const WCHAR test_kannada[] = {0x0c95, 0x0ca8, 0x0ccd, 0x0ca8, 0x0ca1};
+ static const shapeTest_char kannada_c[] = {{0,{0,0}},{1,{0,0}},{1,{0,0}},{1,{0,0}},{3,{0,0}}};
+ static const shapeTest_glyph kannada_g[] = {
+ {1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
+ {1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
+ {1,{{SCRIPT_JUSTIFY_NONE,0,0,0,0,0},0}},
+ {1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
+ {1,{{SCRIPT_JUSTIFY_NONE,0,0,0,0,0},0}} };
+
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
{
win_skip("ScriptShapeOpenType not available on this platform\n");
@@ -1003,6 +1013,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
SelectObject(hdc, hfont_orig);
DeleteObject(hfont);
}
+
+ test_valid = find_font_for_range(hdc, "Tunga", 22, test_kannada[0], &hfont, &hfont_orig);
+ if (hfont != NULL)
+ {
+ test_shape_ok_valid(test_valid, hdc, test_kannada, 5, &Control, &State, 0, 4, kannada_c, kannada_g);
+ SelectObject(hdc, hfont_orig);
+ DeleteObject(hfont);
+ }
}
static void test_ScriptShape(HDC hdc)
More information about the wine-cvs
mailing list