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
4fa29455
Commit
4fa29455
authored
Jun 01, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: GetGlyphOutline should fail for a bitmap font.
parent
b3b78b33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
font.c
dlls/gdi32/tests/font.c
+14
-5
No files found.
dlls/gdi32/tests/font.c
View file @
4fa29455
...
...
@@ -876,6 +876,7 @@ static void test_bitmap_font_metrics(void)
for
(
bit
=
0
;
bit
<
32
;
bit
++
)
{
GLYPHMETRICS
gm
;
DWORD
fs
[
2
];
BOOL
bRet
;
...
...
@@ -904,16 +905,11 @@ static void test_bitmap_font_metrics(void)
hfont
=
create_font
(
lf
.
lfFaceName
,
&
lf
);
old_hfont
=
SelectObject
(
hdc
,
hfont
);
bRet
=
GetTextMetrics
(
hdc
,
&
tm
);
ok
(
bRet
,
"GetTextMetrics error %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
GetTextFace
(
hdc
,
sizeof
(
face_name
),
face_name
);
ok
(
ret
,
"GetTextFace error %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
GetTextCharset
(
hdc
);
if
(
lstrcmp
(
face_name
,
fd
[
i
].
face_name
)
!=
0
)
{
ok
(
ret
!=
ANSI_CHARSET
,
"font charset should not be ANSI_CHARSET
\n
"
);
...
...
@@ -924,6 +920,19 @@ static void test_bitmap_font_metrics(void)
continue
;
}
memset
(
&
gm
,
0
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutline
(
hdc
,
'A'
,
GGO_METRICS
,
&
gm
,
0
,
NULL
,
&
mat
);
todo_wine
{
ok
(
ret
==
GDI_ERROR
,
"GetGlyphOutline should fail for a bitmap font
\n
"
);
ok
(
GetLastError
()
==
ERROR_CAN_NOT_COMPLETE
,
"expected ERROR_CAN_NOT_COMPLETE, got %u
\n
"
,
GetLastError
());
}
bRet
=
GetTextMetrics
(
hdc
,
&
tm
);
ok
(
bRet
,
"GetTextMetrics error %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
GetTextCharset
(
hdc
);
ok
(
ret
==
expected_cs
,
"got charset %d, expected %d
\n
"
,
ret
,
expected_cs
);
trace
(
"created %s, height %d charset %x dpi %d
\n
"
,
face_name
,
tm
.
tmHeight
,
tm
.
tmCharSet
,
tm
.
tmDigitizedAspectX
);
...
...
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