mirror of
https://github.com/reactos/wine.git
synced 2024-12-02 00:36:43 +00:00
usp10/tests: Add Gurmukhi shaping test.
This commit is contained in:
parent
bd07f67571
commit
856b272635
@ -771,6 +771,18 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||
{1,{{SCRIPT_JUSTIFY_NONE,1,0,0,0,0},0}},
|
||||
{1,{{SCRIPT_JUSTIFY_NONE,0,0,0,0,0},0}} };
|
||||
|
||||
/* Gurmukhi */
|
||||
static const WCHAR test_gurmukhi[] = {0x0a17, 0x0a41, 0x0a30, 0x0a2e, 0x0a41, 0x0a16, 0x0a40};
|
||||
static const shapeTest_char gurmukhi_c[] = {{0,{0,0}},{0,{0,0}},{2,{0,0}},{3,{0,0}},{3,{0,0}},{5,{0,0}},{5,{0,0}}};
|
||||
static const shapeTest_glyph gurmukhi_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,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)
|
||||
{
|
||||
win_skip("ScriptShapeOpenType not available on this platform\n");
|
||||
@ -883,6 +895,14 @@ static void test_ScriptShapeOpenType(HDC hdc)
|
||||
SelectObject(hdc, hfont_orig);
|
||||
DeleteObject(hfont);
|
||||
}
|
||||
|
||||
test_valid = find_font_for_range(hdc, "Raavi", 17, test_gurmukhi[0], &hfont, &hfont_orig);
|
||||
if (hfont != NULL)
|
||||
{
|
||||
test_shape_ok_valid(test_valid, hdc, test_gurmukhi, 7, &Control, &State, 0, 7, gurmukhi_c, gurmukhi_g);
|
||||
SelectObject(hdc, hfont_orig);
|
||||
DeleteObject(hfont);
|
||||
}
|
||||
}
|
||||
|
||||
static void test_ScriptShape(HDC hdc)
|
||||
|
Loading…
Reference in New Issue
Block a user