Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8f91b516
Commit
8f91b516
authored
Sep 12, 2012
by
Qian Hong
Committed by
Alexandre Julliard
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Added tests for vertical fonts.
parent
6c1e264e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
font.c
dlls/gdi32/tests/font.c
+28
-0
No files found.
dlls/gdi32/tests/font.c
View file @
8f91b516
...
...
@@ -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:
\n
FamilyName: %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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment