usp10/tests: Add Malayalam shaping test.
This commit is contained in:
parent
e3f92669ed
commit
687b030c85
|
@ -824,6 +824,17 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||||
{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,0,0,0,0,0},0}} };
|
||||||
|
|
||||||
|
/* Malayalam */
|
||||||
|
static const WCHAR test_malayalam[] = {0x0d2e, 0x0d32, 0x0d2f, 0x0d3e, 0x0d33, 0x0d02};
|
||||||
|
static const shapeTest_char malayalam_c[] = {{0,{0,0}},{1,{0,0}},{2,{0,0}},{2,{0,0}},{4,{0,0}},{4,{0,0}}};
|
||||||
|
static const shapeTest_glyph malayalam_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,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");
|
||||||
|
@ -976,6 +987,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, "Kartika", 23, test_malayalam[0], &hfont, &hfont_orig);
|
||||||
|
if (hfont != NULL)
|
||||||
|
{
|
||||||
|
test_shape_ok_valid(test_valid, hdc, test_malayalam, 6, &Control, &State, 0, 6, malayalam_c, malayalam_g);
|
||||||
|
SelectObject(hdc, hfont_orig);
|
||||||
|
DeleteObject(hfont);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_ScriptShape(HDC hdc)
|
static void test_ScriptShape(HDC hdc)
|
||||||
|
|
Loading…
Reference in New Issue