usp10/tests: Add Telugu shaping test.
This commit is contained in:
parent
bdb3a53269
commit
e3f92669ed
|
@ -813,6 +813,17 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||||
{1,{{SCRIPT_JUSTIFY_NONE,0,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}} };
|
||||||
|
|
||||||
|
/* Telugu */
|
||||||
|
static const WCHAR test_telugu[] = {0x0c24, 0x0c46, 0x0c32, 0x0c41, 0x0c17, 0x0c41};
|
||||||
|
static const shapeTest_char telugu_c[] = {{0,{0,0}},{0,{0,0}},{2,{0,0}},{2,{0,0}},{4,{0,0}},{4,{0,0}}};
|
||||||
|
static const shapeTest_glyph telugu_g[] = {
|
||||||
|
{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}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
|
||||||
|
{1,{{SCRIPT_JUSTIFY_NONE,0,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");
|
||||||
|
@ -957,6 +968,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, "Gautami", 21, test_telugu[0], &hfont, &hfont_orig);
|
||||||
|
if (hfont != NULL)
|
||||||
|
{
|
||||||
|
test_shape_ok_valid(test_valid, hdc, test_telugu, 6, &Control, &State, 0, 6, telugu_c, telugu_g);
|
||||||
|
SelectObject(hdc, hfont_orig);
|
||||||
|
DeleteObject(hfont);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_ScriptShape(HDC hdc)
|
static void test_ScriptShape(HDC hdc)
|
||||||
|
|
Loading…
Reference in New Issue