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
3108f3cf
Commit
3108f3cf
authored
May 29, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
May 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Do not try to test OS/2 win metrics on non-windows fonts.
parent
074e6c74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
font.c
dlls/gdi32/tests/font.c
+7
-7
No files found.
dlls/gdi32/tests/font.c
View file @
3108f3cf
...
...
@@ -3077,19 +3077,13 @@ static void test_text_metrics(const LOGFONT *lf, const NEWTEXTMETRIC *ntm)
ret
=
GetFontData
(
hdc
,
MS_OS2_TAG
,
0
,
&
tt_os2
,
size
);
ok
(
ret
==
size
,
"GetFontData should return %u not %u
\n
"
,
size
,
ret
);
ascent
=
GET_BE_WORD
(
tt_os2
.
usWinAscent
);
descent
=
GET_BE_WORD
(
tt_os2
.
usWinDescent
);
cell_height
=
ascent
+
descent
;
ok
(
ntm
->
ntmCellHeight
==
cell_height
,
"%s: ntmCellHeight %u != %u, os2.usWinAscent/os2.usWinDescent %u/%u
\n
"
,
font_name
,
ntm
->
ntmCellHeight
,
cell_height
,
ascent
,
descent
);
SetLastError
(
0xdeadbeef
);
ret
=
GetTextMetricsA
(
hdc
,
&
tmA
);
ok
(
ret
,
"GetTextMetricsA error %u
\n
"
,
GetLastError
());
if
(
!
get_first_last_from_cmap
(
hdc
,
&
cmap_first
,
&
cmap_last
,
&
cmap_type
))
{
skip
(
"
Unable to retrieve first and last glyphs from cmap
\n
"
);
skip
(
"
%s is not a Windows font, OS/2 metrics may be invalid.
\n
"
,
font_name
);
}
else
{
...
...
@@ -3099,6 +3093,12 @@ static void test_text_metrics(const LOGFONT *lf, const NEWTEXTMETRIC *ntm)
USHORT
version
;
TEXTMETRICW
tmW
;
ascent
=
GET_BE_WORD
(
tt_os2
.
usWinAscent
);
descent
=
GET_BE_WORD
(
tt_os2
.
usWinDescent
);
cell_height
=
ascent
+
descent
;
ok
(
ntm
->
ntmCellHeight
==
cell_height
,
"%s: ntmCellHeight %u != %u, os2.usWinAscent/os2.usWinDescent %u/%u
\n
"
,
font_name
,
ntm
->
ntmCellHeight
,
cell_height
,
ascent
,
descent
);
version
=
GET_BE_WORD
(
tt_os2
.
version
);
os2_first_char
=
GET_BE_WORD
(
tt_os2
.
usFirstCharIndex
);
...
...
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