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
78a1e07c
Commit
78a1e07c
authored
Jul 21, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jul 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a test for font orientation.
parent
d619640f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
font.c
dlls/gdi32/tests/font.c
+30
-0
No files found.
dlls/gdi32/tests/font.c
View file @
78a1e07c
...
...
@@ -2395,6 +2395,35 @@ static void test_GetTextFace(void)
ReleaseDC
(
NULL
,
dc
);
}
static
void
test_orientation
(
void
)
{
static
const
char
test_str
[
11
]
=
"Test String"
;
HDC
hdc
;
LOGFONTA
lf
;
HFONT
hfont
,
old_hfont
;
SIZE
size
;
if
(
!
is_truetype_font_installed
(
"Arial"
))
{
skip
(
"Arial is not installed
\n
"
);
return
;
}
hdc
=
CreateCompatibleDC
(
0
);
memset
(
&
lf
,
0
,
sizeof
(
lf
));
lstrcpyA
(
lf
.
lfFaceName
,
"Arial"
);
lf
.
lfHeight
=
72
;
lf
.
lfOrientation
=
lf
.
lfEscapement
=
900
;
hfont
=
create_font
(
"orientation"
,
&
lf
);
old_hfont
=
SelectObject
(
hdc
,
hfont
);
ok
(
GetTextExtentExPointA
(
hdc
,
test_str
,
sizeof
(
test_str
),
32767
,
NULL
,
NULL
,
&
size
),
"GetTextExtentExPointA failed
\n
"
);
todo_wine
ok
(
near_match
(
311
,
size
.
cx
),
"cx should be about 311, got %d
\n
"
,
size
.
cx
);
ok
(
near_match
(
75
,
size
.
cy
),
"cy should be about 75, got %d
\n
"
,
size
.
cy
);
SelectObject
(
hdc
,
old_hfont
);
DeleteObject
(
hfont
);
DeleteDC
(
hdc
);
}
START_TEST
(
font
)
{
init
();
...
...
@@ -2413,6 +2442,7 @@ START_TEST(font)
test_font_charset
();
test_GetFontUnicodeRanges
();
test_nonexistent_font
();
test_orientation
();
/* On Windows Arial has a lot of default charset aliases such as Arial Cyr,
* I'd like to avoid them in this test.
...
...
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