From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com> The fallback font for Telugu has a ligature defined for the 0x0c24 and 0x0c46 combination, therefore returning 5 glyphs instead of 6. Modify the test case to accomodate for this case. --- dlls/usp10/tests/usp10.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 0a9b5441398..9748f960968 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -1587,10 +1587,9 @@ static void test_ScriptShapeOpenType(HDC hdc) /* 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_char telugu_c[] = {{0,{0,0}},{0,{0,0}},{1,{0,0}},{1,{0,0}},{3,{0,0}},{3,{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}}, @@ -1807,7 +1806,7 @@ static void test_ScriptShapeOpenType(HDC hdc) test_valid = find_font_for_range(hdc, "Noto Sans Telugu", 21, test_telugu[0], &hfont, &hfont_orig, NULL); if (hfont != NULL) { - test_shape_ok_valid(test_valid, hdc, test_telugu, 6, &Control, &State, 0, 6, telugu_c, telugu_g); + test_shape_ok_valid(test_valid, hdc, test_telugu, 6, &Control, &State, 0, 5, telugu_c, telugu_g); SelectObject(hdc, hfont_orig); DeleteObject(hfont); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10631