usp10/tests: Add Oriya shaping test.
This commit is contained in:
parent
a1795cfc9a
commit
ee45ab66ba
|
@ -795,6 +795,15 @@ 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}} };
|
||||
|
||||
/* Oriya */
|
||||
static const WCHAR test_oriya[] = {0x0b13, 0x0b21, 0x0b3c, 0x0b3f, 0x0b06};
|
||||
static const shapeTest_char oriya_c[] = {{0,{0,0}},{1,{0,0}},{1,{0,0}},{1,{0,0}},{3,{0,0}}};
|
||||
static const shapeTest_glyph oriya_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}} };
|
||||
|
||||
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
|
||||
{
|
||||
win_skip("ScriptShapeOpenType not available on this platform\n");
|
||||
|
@ -923,6 +932,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
|||
SelectObject(hdc, hfont_orig);
|
||||
DeleteObject(hfont);
|
||||
}
|
||||
|
||||
test_valid = find_font_for_range(hdc, "Kalinga", 19, test_oriya[0], &hfont, &hfont_orig);
|
||||
if (hfont != NULL)
|
||||
{
|
||||
test_shape_ok_valid(test_valid, hdc, test_oriya, 5, &Control, &State, 0, 4, oriya_c, oriya_g);
|
||||
SelectObject(hdc, hfont_orig);
|
||||
DeleteObject(hfont);
|
||||
}
|
||||
}
|
||||
|
||||
static void test_ScriptShape(HDC hdc)
|
||||
|
|
Loading…
Reference in New Issue