usp10/test: Add Tibetan shaping test.
This commit is contained in:
parent
2b3da5389c
commit
c5f2ac3eea
|
@ -633,6 +633,28 @@ 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}} };
|
||||||
|
|
||||||
|
/* Tibetan */
|
||||||
|
static const WCHAR test_tibetan[] = {0x0f04, 0x0f05, 0x0f0e, 0x0020, 0x0f51, 0x0f7c, 0x0f53, 0x0f0b, 0x0f5a, 0x0f53, 0x0f0b, 0x0f51, 0x0f44, 0x0f0b, 0x0f54, 0x0f7c, 0x0f0d};
|
||||||
|
static const shapeTest_char tibetan_c[] = {{0,{0,0}},{1,{0,0}},{2,{0,0}},{3,{1,0}},{4,{0,0}},{4,{0,0}},{6,{0,0}},{7,{0,0}},{8,{0,0}},{9,{0,0}},{10,{0,0}},{11,{0,0}},{12,{0,0}},{13,{0,0}},{14,{0,0}},{14,{0,0}},{16,{0,0}}};
|
||||||
|
static const shapeTest_glyph tibetan_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_BLANK,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,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}},
|
||||||
|
{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)
|
if (!pScriptItemizeOpenType || !pScriptShapeOpenType)
|
||||||
{
|
{
|
||||||
win_skip("ScriptShapeOpenType not available on this platform\n");
|
win_skip("ScriptShapeOpenType not available on this platform\n");
|
||||||
|
@ -721,6 +743,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 Himalaya", 70, test_tibetan[0], &hfont, &hfont_orig);
|
||||||
|
if (hfont != NULL)
|
||||||
|
{
|
||||||
|
test_shape_ok_valid(test_valid, hdc, test_tibetan, 17, &Control, &State, 0, 17, tibetan_c, tibetan_g);
|
||||||
|
SelectObject(hdc, hfont_orig);
|
||||||
|
DeleteObject(hfont);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_ScriptShape(HDC hdc)
|
static void test_ScriptShape(HDC hdc)
|
||||||
|
|
Loading…
Reference in New Issue