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
e729b260
Commit
e729b260
authored
Mar 11, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Add a test for matching in system font set.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
318ebc89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
font.c
dlls/dwrite/tests/font.c
+23
-1
No files found.
dlls/dwrite/tests/font.c
View file @
e729b260
...
...
@@ -10011,8 +10011,11 @@ static void test_family_font_set(void)
static
void
test_system_font_set
(
void
)
{
IDWriteFontSet
*
fontset
,
*
filtered_set
;
IDWriteFontFaceReference
*
ref
;
IDWriteFontFace3
*
fontface
;
IDWriteFactory3
*
factory
;
IDWriteFontSet
*
fontset
;
DWRITE_FONT_PROPERTY
p
;
unsigned
int
count
;
HRESULT
hr
;
...
...
@@ -10028,6 +10031,25 @@ static void test_system_font_set(void)
count
=
IDWriteFontSet_GetFontCount
(
fontset
);
ok
(
!!
count
,
"Unexpected font count %u.
\n
"
,
count
);
p
.
propertyId
=
DWRITE_FONT_PROPERTY_ID_FULL_NAME
;
p
.
propertyValue
=
L"Tahoma"
;
p
.
localeName
=
L""
;
hr
=
IDWriteFontSet_GetMatchingFonts
(
fontset
,
&
p
,
1
,
&
filtered_set
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
count
=
IDWriteFontSet_GetFontCount
(
filtered_set
);
ok
(
!!
count
,
"Unexpected font count %u.
\n
"
,
count
);
hr
=
IDWriteFontSet_GetFontFaceReference
(
filtered_set
,
0
,
&
ref
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDWriteFontFaceReference_CreateFontFace
(
ref
,
&
fontface
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IDWriteFontFace3_Release
(
fontface
);
IDWriteFontFaceReference_Release
(
ref
);
IDWriteFontSet_Release
(
filtered_set
);
IDWriteFontSet_Release
(
fontset
);
IDWriteFactory3_Release
(
factory
);
...
...
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