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
8f34bee2
Commit
8f34bee2
authored
Oct 16, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Added one more test for system font collection.
parent
6ef156e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
font.c
dlls/dwrite/tests/font.c
+13
-2
No files found.
dlls/dwrite/tests/font.c
View file @
8f34bee2
...
...
@@ -657,11 +657,13 @@ if (0) /* crashes on native */
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
fontface
==
fontface2
,
"got %p, was %p
\n
"
,
fontface2
,
fontface
);
/* the fontface refcount is increased here */
IDWriteFontFace_Release
(
fontface
);
IDWriteFont_Release
(
font
);
hr
=
IDWriteFontFace_QueryInterface
(
fontface
,
&
IID_IDWriteFont
,
(
void
**
)
&
font
);
ok
(
hr
==
E_NOINTERFACE
||
broken
(
hr
==
E_NOTIMPL
),
"got 0x%08x
\n
"
,
hr
);
IDWriteFontFace_Release
(
fontface
);
IDWriteFont_Release
(
font
);
IDWriteGdiInterop_Release
(
interop
);
}
...
...
@@ -726,6 +728,7 @@ static void test_system_fontcollection(void)
{
IDWriteFontCollection
*
collection
,
*
coll2
;
IDWriteFontFamily
*
family
;
IDWriteFactory
*
factory2
;
HRESULT
hr
;
UINT32
i
;
BOOL
ret
;
...
...
@@ -743,6 +746,14 @@ static void test_system_fontcollection(void)
ok
(
coll2
==
collection
,
"got %p, was %p
\n
"
,
coll2
,
collection
);
IDWriteFontCollection_Release
(
coll2
);
hr
=
DWriteCreateFactory
(
DWRITE_FACTORY_TYPE_ISOLATED
,
&
IID_IDWriteFactory
,
(
IUnknown
**
)
&
factory2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDWriteFactory_GetSystemFontCollection
(
factory2
,
&
coll2
,
FALSE
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
coll2
!=
collection
,
"got %p, was %p
\n
"
,
coll2
,
collection
);
IDWriteFontCollection_Release
(
coll2
);
IDWriteFactory_Release
(
factory2
);
i
=
IDWriteFontCollection_GetFontFamilyCount
(
collection
);
ok
(
i
,
"got %u
\n
"
,
i
);
...
...
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