Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
37d216cc
Commit
37d216cc
authored
Jun 18, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add a test case for vertical fonts enumeration order.
parent
e531306f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
font.c
dlls/gdi32/tests/font.c
+37
-0
No files found.
dlls/gdi32/tests/font.c
View file @
37d216cc
...
...
@@ -5098,6 +5098,42 @@ static void test_max_height(void)
return
;
}
static
void
test_vertical_order
(
void
)
{
struct
enum_font_data
efd
;
LOGFONTA
lf
;
HDC
hdc
;
int
i
,
j
;
hdc
=
CreateCompatibleDC
(
0
);
ok
(
hdc
!=
NULL
,
"CreateCompatibleDC failed
\n
"
);
memset
(
&
lf
,
0
,
sizeof
(
lf
));
lf
.
lfCharSet
=
DEFAULT_CHARSET
;
lf
.
lfClipPrecision
=
CLIP_DEFAULT_PRECIS
;
lf
.
lfHeight
=
16
;
lf
.
lfWidth
=
16
;
lf
.
lfQuality
=
DEFAULT_QUALITY
;
lf
.
lfItalic
=
FALSE
;
lf
.
lfWeight
=
FW_DONTCARE
;
efd
.
total
=
0
;
EnumFontFamiliesExA
(
hdc
,
&
lf
,
enum_font_data_proc
,
(
LPARAM
)
&
efd
,
0
);
for
(
i
=
0
;
i
<
efd
.
total
;
i
++
)
{
if
(
efd
.
lf
[
i
].
lfFaceName
[
0
]
!=
'@'
)
continue
;
for
(
j
=
0
;
j
<
efd
.
total
;
j
++
)
{
if
(
!
strcmp
(
efd
.
lf
[
i
].
lfFaceName
+
1
,
efd
.
lf
[
j
].
lfFaceName
))
{
ok
(
i
>
j
,
"Found vertical font %s before its horizontal version
\n
"
,
efd
.
lf
[
i
].
lfFaceName
);
break
;
}
}
}
DeleteDC
(
hdc
);
}
START_TEST
(
font
)
{
init
();
...
...
@@ -5155,6 +5191,7 @@ START_TEST(font)
test_fullname2
();
test_east_asian_font_selection
();
test_max_height
();
test_vertical_order
();
/* These tests should be last test until RemoveFontResource
* is properly implemented.
...
...
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