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
eb7edb24
Commit
eb7edb24
authored
Feb 01, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Line metrics tests with uniform spacing.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9350e573
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
layout.c
dlls/dwrite/tests/layout.c
+15
-0
No files found.
dlls/dwrite/tests/layout.c
View file @
eb7edb24
...
...
@@ -3624,6 +3624,21 @@ static void test_GetLineMetrics(void)
ok
(
metrics
[
3
].
height
==
metrics
[
1
].
height
,
"got %f, old %f
\n
"
,
metrics
[
3
].
height
,
metrics
[
1
].
height
);
ok
(
metrics
[
3
].
baseline
==
metrics
[
1
].
baseline
,
"got %f, old %f
\n
"
,
metrics
[
3
].
baseline
,
metrics
[
1
].
baseline
);
/* Switch to uniform spacing */
hr
=
IDWriteTextLayout_SetLineSpacing
(
layout
,
DWRITE_LINE_SPACING_METHOD_UNIFORM
,
456
.
0
f
,
123
.
0
f
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDWriteTextLayout_GetLineMetrics
(
layout
,
metrics
,
sizeof
(
metrics
)
/
sizeof
(
metrics
[
0
]),
&
count
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
count
==
2
,
"got %u
\n
"
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
todo_wine
{
ok
(
metrics
[
i
].
height
==
456
.
0
f
,
"%u: got line height %f
\n
"
,
i
,
metrics
[
i
].
height
);
ok
(
metrics
[
i
].
baseline
==
123
.
0
f
,
"%u: got line baseline %f
\n
"
,
i
,
metrics
[
i
].
baseline
);
}
}
IDWriteTextLayout_Release
(
layout
);
IDWriteTextFormat_Release
(
format
);
...
...
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