mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
gdi32/tests: Add tests for script-independent vertical glyph lookup.
vertical2.sfd is based on vertical.sfd. However, it has a different GSUB table for testing.
This commit is contained in:
parent
67c1c3c255
commit
93c71b6db7
4 changed files with 1087 additions and 0 deletions
|
@ -6298,6 +6298,31 @@ static void test_vertical_font(void)
|
|||
ok(ret, "RemoveFontResourceEx() error %ld\n", GetLastError());
|
||||
|
||||
DeleteFileA(ttf_name);
|
||||
|
||||
if (!write_ttf_file("vertical2.ttf", ttf_name))
|
||||
{
|
||||
skip("Failed to create ttf file for testing\n");
|
||||
return;
|
||||
}
|
||||
|
||||
num = AddFontResourceExA(ttf_name, FR_PRIVATE, 0);
|
||||
ok(num == 2, "AddFontResourceExA should add 2 fonts from vertical2.ttf\n");
|
||||
|
||||
check_vertical_font("WineTestVertical2", &installed, &selected, &gm, &hgi);
|
||||
ok(installed, "WineTestVertical2 is not installed\n");
|
||||
ok(selected, "WineTestVertical2 is not selected\n");
|
||||
|
||||
check_vertical_font("@WineTestVertical2", &installed, &selected, &gm, &vgi);
|
||||
ok(installed, "@WineTestVertical2 is not installed\n");
|
||||
ok(selected, "@WineTestVertical2 is not selected\n");
|
||||
|
||||
/* use the first vertical alternates table that doesn't replace U+2025 */
|
||||
todo_wine ok(hgi == vgi, "different glyph h:%u v:%u\n", hgi, vgi);
|
||||
|
||||
ret = RemoveFontResourceExA(ttf_name, FR_PRIVATE, 0);
|
||||
ok(ret, "RemoveFontResourceEx() error %ld\n", GetLastError());
|
||||
|
||||
DeleteFileA(ttf_name);
|
||||
}
|
||||
|
||||
static INT CALLBACK has_vertical_font_proc(const LOGFONTA *lf, const TEXTMETRICA *ntm,
|
||||
|
|
|
@ -29,6 +29,9 @@ wine_vdmx.ttf RCDATA wine_vdmx.ttf
|
|||
/* @makedep: vertical.ttf */
|
||||
vertical.ttf RCDATA vertical.ttf
|
||||
|
||||
/* @makedep: vertical2.ttf */
|
||||
vertical2.ttf RCDATA vertical2.ttf
|
||||
|
||||
/* @makedep: wine_longname.ttf */
|
||||
wine_longname.ttf RCDATA wine_longname.ttf
|
||||
|
||||
|
|
1059
dlls/gdi32/tests/vertical2.sfd
Normal file
1059
dlls/gdi32/tests/vertical2.sfd
Normal file
File diff suppressed because it is too large
Load diff
BIN
dlls/gdi32/tests/vertical2.ttf
Normal file
BIN
dlls/gdi32/tests/vertical2.ttf
Normal file
Binary file not shown.
Loading…
Reference in a new issue