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
f91d61a5
Commit
f91d61a5
authored
Dec 30, 2009
by
Ilya Shpigor
Committed by
Alexandre Julliard
Dec 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Test for font creation with the OEM charset.
parent
11754a64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
font.c
dlls/gdi32/tests/font.c
+24
-0
No files found.
dlls/gdi32/tests/font.c
View file @
f91d61a5
...
...
@@ -2845,6 +2845,29 @@ static void test_orientation(void)
DeleteDC
(
hdc
);
}
static
void
test_oemcharset
(
void
)
{
HDC
hdc
;
LOGFONTA
lf
;
HFONT
hfont
,
old_hfont
;
int
charset
;
hdc
=
CreateCompatibleDC
(
0
);
ZeroMemory
(
&
lf
,
sizeof
(
lf
));
lf
.
lfHeight
=
12
;
lf
.
lfCharSet
=
OEM_CHARSET
;
lf
.
lfPitchAndFamily
=
FIXED_PITCH
|
FF_MODERN
;
lstrcpyA
(
lf
.
lfFaceName
,
"Terminal"
);
hfont
=
CreateFontIndirectA
(
&
lf
);
old_hfont
=
SelectObject
(
hdc
,
hfont
);
charset
=
GetTextCharset
(
hdc
);
todo_wine
ok
(
charset
==
OEM_CHARSET
,
"expected %d charset, got %d
\n
"
,
OEM_CHARSET
,
charset
);
SelectObject
(
hdc
,
old_hfont
);
DeleteObject
(
hfont
);
DeleteDC
(
hdc
);
}
static
void
test_GetGlyphOutline
(
void
)
{
MAT2
mat
=
{
{
0
,
1
},
{
0
,
0
},
{
0
,
0
},
{
0
,
1
}
};
...
...
@@ -3054,4 +3077,5 @@ START_TEST(font)
test_GetTextMetrics2
(
"Arial"
,
-
55
);
test_GetTextMetrics2
(
"Arial"
,
-
110
);
test_CreateFontIndirect
();
test_oemcharset
();
}
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