usp10/test: Add Phags-pa shaping test.
This commit is contained in:
parent
42274ed8ab
commit
852c8fd60e
|
@ -603,6 +603,22 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||||
{1,{{SCRIPT_JUSTIFY_NONE,0,1,1,0,0},0}},
|
{1,{{SCRIPT_JUSTIFY_NONE,0,1,1,0,0},0}},
|
||||||
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}} };
|
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}} };
|
||||||
|
|
||||||
|
/* Phags-pa */
|
||||||
|
static const WCHAR test_phagspa[] = {0xa84f, 0xa861, 0xa843, 0x0020, 0xa863, 0xa861, 0xa859, 0x0020, 0xa850, 0xa85c, 0xa85e};
|
||||||
|
static const shapeTest_char phagspa_c[] = {{0,{0,0}},{1,{0,0}},{2,{0,0}},{3,{1,0}},{4,{0,0}},{5,{0,0}},{6,{0,0}},{7,{1,0}},{8,{0,0}},{9,{0,0}},{10,{0,0}}};
|
||||||
|
static const shapeTest_glyph phagspa_g[] = {
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_CHARACTER,1,0,0,0,0},0}},
|
||||||
|
{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}} };
|
||||||
|
|
||||||
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
|
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
|
||||||
{
|
{
|
||||||
win_skip("ScriptShapeOpenType not available on this platform\n");
|
win_skip("ScriptShapeOpenType not available on this platform\n");
|
||||||
|
@ -675,6 +691,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, "Microsoft PhagsPa", 53, test_phagspa[0], &hfont, &hfont_orig);
|
||||||
|
if (hfont != NULL)
|
||||||
|
{
|
||||||
|
test_shape_ok_valid(test_valid, hdc, test_phagspa, 11, &Control, &State, 0, 11, phagspa_c, phagspa_g);
|
||||||
|
SelectObject(hdc, hfont_orig);
|
||||||
|
DeleteObject(hfont);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_ScriptShape(HDC hdc)
|
static void test_ScriptShape(HDC hdc)
|
||||||
|
|
Loading…
Reference in New Issue