Commit 8f91b516 authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

gdi32/tests: Added tests for vertical fonts.

parent 6c1e264e
......@@ -4058,6 +4058,8 @@ static void test_fullname2_helper(const char *Family)
int i;
DWORD otm_size, ret, buf_size;
OUTLINETEXTMETRICA *otm;
BOOL want_vertical, get_vertical;
want_vertical = ( Family[0] == '@' );
hdc = CreateCompatibleDC(0);
ok(hdc != NULL, "CreateCompatibleDC failed\n");
......@@ -4084,6 +4086,13 @@ static void test_fullname2_helper(const char *Family)
trace("Checking font %s:\nFamilyName: %s; FaceName: %s; StyleName: %s\n", Family, FamilyName, FaceName, StyleName);
get_vertical = ( FamilyName[0] == '@' );
if (get_vertical)
{
todo_wine ok(get_vertical == want_vertical, "Vertical flags don't match: %s %s\n", Family, FamilyName);
continue;
}
lstrcpyA(lf.lfFaceName, FaceName);
hfont = CreateFontIndirectA(&lf);
ok(hfont != 0, "CreateFontIndirectA failed\n");
......@@ -4170,9 +4179,28 @@ static void test_fullname2_helper(const char *Family)
static void test_fullname2(void)
{
test_fullname2_helper("Arial");
test_fullname2_helper("DejaVu Sans");
test_fullname2_helper("Lucida Sans");
test_fullname2_helper("Tahoma");
test_fullname2_helper("Webdings");
test_fullname2_helper("Wingdings");
test_fullname2_helper("SimSun");
test_fullname2_helper("NSimSun");
test_fullname2_helper("MingLiu");
test_fullname2_helper("PMingLiu");
test_fullname2_helper("WenQuanYi Micro Hei");
test_fullname2_helper("MS UI Gothic");
test_fullname2_helper("Ume UI Gothic");
test_fullname2_helper("MS Gothic");
test_fullname2_helper("Ume Gothic");
test_fullname2_helper("MS PGothic");
test_fullname2_helper("Ume P Gothic");
test_fullname2_helper("Gulim");
test_fullname2_helper("Batang");
test_fullname2_helper("UnBatang");
test_fullname2_helper("UnDotum");
}
static BOOL write_ttf_file(const char *fontname, char *tmp_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment