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
c7a174f7
Commit
c7a174f7
authored
Apr 14, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Test for superscript/subscript font metrics.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e1d1aa5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
font.c
dlls/dwrite/tests/font.c
+26
-0
No files found.
dlls/dwrite/tests/font.c
View file @
c7a174f7
...
...
@@ -1575,6 +1575,15 @@ static void get_expected_font_metrics(IDWriteFontFace *fontface, DWRITE_FONT_MET
metrics
->
strikethroughPosition
=
GET_BE_WORD
(
tt_os2
->
yStrikeoutPosition
);
metrics
->
strikethroughThickness
=
GET_BE_WORD
(
tt_os2
->
yStrikeoutSize
);
metrics
->
subscriptPositionX
=
GET_BE_WORD
(
tt_os2
->
ySubscriptXOffset
);
metrics
->
subscriptPositionY
=
-
GET_BE_WORD
(
tt_os2
->
ySubscriptYOffset
);
metrics
->
subscriptSizeX
=
GET_BE_WORD
(
tt_os2
->
ySubscriptXSize
);
metrics
->
subscriptSizeY
=
GET_BE_WORD
(
tt_os2
->
ySubscriptYSize
);
metrics
->
superscriptPositionX
=
GET_BE_WORD
(
tt_os2
->
ySuperscriptXOffset
);
metrics
->
superscriptPositionY
=
GET_BE_WORD
(
tt_os2
->
ySuperscriptYOffset
);
metrics
->
superscriptSizeX
=
GET_BE_WORD
(
tt_os2
->
ySuperscriptXSize
);
metrics
->
superscriptSizeY
=
GET_BE_WORD
(
tt_os2
->
ySuperscriptYSize
);
}
if
(
tt_post
)
{
...
...
@@ -1631,6 +1640,23 @@ static void check_font_metrics(const WCHAR *nameW, BOOL has_metrics1, const DWRI
m1
->
glyphBoxRight
,
expected
->
glyphBoxRight
);
ok
(
m1
->
glyphBoxBottom
==
expected
->
glyphBoxBottom
,
"font %s: glyphBoxBottom %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
glyphBoxBottom
,
expected
->
glyphBoxBottom
);
ok
(
m1
->
subscriptPositionX
==
expected
->
subscriptPositionX
,
"font %s: subscriptPositionX %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
subscriptPositionX
,
expected
->
subscriptPositionX
);
ok
(
m1
->
subscriptPositionY
==
expected
->
subscriptPositionY
,
"font %s: subscriptPositionY %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
subscriptPositionY
,
expected
->
subscriptPositionY
);
ok
(
m1
->
subscriptSizeX
==
expected
->
subscriptSizeX
,
"font %s: subscriptSizeX %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
subscriptSizeX
,
expected
->
subscriptSizeX
);
ok
(
m1
->
subscriptSizeY
==
expected
->
subscriptSizeY
,
"font %s: subscriptSizeY %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
subscriptSizeY
,
expected
->
subscriptSizeY
);
ok
(
m1
->
superscriptPositionX
==
expected
->
superscriptPositionX
,
"font %s: superscriptPositionX %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
superscriptPositionX
,
expected
->
superscriptPositionX
);
ok
(
m1
->
superscriptPositionY
==
expected
->
superscriptPositionY
,
"font %s: superscriptPositionY %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
superscriptPositionY
,
expected
->
superscriptPositionY
);
ok
(
m1
->
superscriptSizeX
==
expected
->
superscriptSizeX
,
"font %s: superscriptSizeX %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
superscriptSizeX
,
expected
->
superscriptSizeX
);
ok
(
m1
->
superscriptSizeY
==
expected
->
superscriptSizeY
,
"font %s: superscriptSizeY %d, expected %d
\n
"
,
wine_dbgstr_w
(
nameW
),
m1
->
superscriptSizeY
,
expected
->
superscriptSizeY
);
}
}
...
...
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