Qian Hong : gdi32/tests: Added tests for vertical fonts.
Alexandre Julliard
julliard at winehq.org
Wed Sep 12 13:39:17 CDT 2012
Module: wine
Branch: master
Commit: 8f91b516741be8a51ac0ae10379e79fa8ed4a53f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f91b516741be8a51ac0ae10379e79fa8ed4a53f
Author: Qian Hong <fracting at gmail.com>
Date: Wed Sep 12 21:48:45 2012 +0800
gdi32/tests: Added tests for vertical fonts.
---
dlls/gdi32/tests/font.c | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 3b79bd0..3953512 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -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)
More information about the wine-cvs
mailing list