usp10/tests: Add Syriac shaping test.
This commit is contained in:
parent
ee450d5041
commit
2d8955429c
|
@ -574,6 +574,17 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||||
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}}};
|
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}}};
|
||||||
|
|
||||||
|
/* Syriac */
|
||||||
|
static const WCHAR test_syriac[] = {0x0710, 0x0710, 0x0710, 0x0728, 0x0718, 0x0723,0};
|
||||||
|
static const shapeTest_char syriac_c[] = {{5,{0,0}},{4,{0,0}},{3,{0,0}},{2,{0,0}},{1,{0,0}},{0,{0,0}}};
|
||||||
|
static const shapeTest_glyph syriac_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,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}} };
|
||||||
|
|
||||||
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
|
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
|
||||||
{
|
{
|
||||||
win_skip("ScriptShapeOpenType not available on this platform\n");
|
win_skip("ScriptShapeOpenType not available on this platform\n");
|
||||||
|
@ -630,6 +641,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||||
SelectObject(hdc, hfont_orig);
|
SelectObject(hdc, hfont_orig);
|
||||||
DeleteObject(hfont);
|
DeleteObject(hfont);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test_valid = find_font_for_range(hdc, "Estrangelo Edessa", 71, test_syriac[0], &hfont, &hfont_orig);
|
||||||
|
if (hfont != NULL)
|
||||||
|
{
|
||||||
|
test_shape_ok_valid(test_valid, hdc, test_syriac, 6, &Control, &State, 0, 6, syriac_c, syriac_g);
|
||||||
|
SelectObject(hdc, hfont_orig);
|
||||||
|
DeleteObject(hfont);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_ScriptShape(HDC hdc)
|
static void test_ScriptShape(HDC hdc)
|
||||||
|
|
Loading…
Reference in New Issue