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
02773e1f
Commit
02773e1f
authored
Jul 19, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: A couple of tests for matching with invalid font properties.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0973f465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
font.c
dlls/dwrite/tests/font.c
+30
-0
No files found.
dlls/dwrite/tests/font.c
View file @
02773e1f
...
...
@@ -2970,6 +2970,20 @@ static void test_GetFirstMatchingFont(void)
IDWriteFont_Release
(
font
);
IDWriteFont_Release
(
font2
);
/* out-of-range font props are allowed */
hr
=
IDWriteFontFamily_GetFirstMatchingFont
(
family
,
1000
,
DWRITE_FONT_STRETCH_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
&
font
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteFont_Release
(
font
);
hr
=
IDWriteFontFamily_GetFirstMatchingFont
(
family
,
DWRITE_FONT_WEIGHT_NORMAL
,
10
,
DWRITE_FONT_STYLE_NORMAL
,
&
font
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteFont_Release
(
font
);
hr
=
IDWriteFontFamily_GetFirstMatchingFont
(
family
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
10
,
&
font
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteFont_Release
(
font
);
IDWriteFontFamily_Release
(
family
);
font
=
get_tahoma_instance
(
factory
,
DWRITE_FONT_STYLE_ITALIC
);
...
...
@@ -2998,6 +3012,22 @@ static void test_GetMatchingFonts(void)
hr
=
IDWriteFontCollection_GetFontFamily
(
collection
,
0
,
&
family
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
/* out-of-range font props are allowed */
hr
=
IDWriteFontFamily_GetMatchingFonts
(
family
,
1000
,
DWRITE_FONT_STRETCH_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
&
fontlist
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteFontList_Release
(
fontlist
);
hr
=
IDWriteFontFamily_GetMatchingFonts
(
family
,
DWRITE_FONT_WEIGHT_NORMAL
,
10
,
DWRITE_FONT_STYLE_NORMAL
,
&
fontlist
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteFontList_Release
(
fontlist
);
hr
=
IDWriteFontFamily_GetMatchingFonts
(
family
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
10
,
&
fontlist
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDWriteFontList_Release
(
fontlist
);
hr
=
IDWriteFontFamily_GetMatchingFonts
(
family
,
DWRITE_FONT_WEIGHT_NORMAL
,
DWRITE_FONT_STRETCH_NORMAL
,
DWRITE_FONT_STYLE_NORMAL
,
&
fontlist
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
...
...
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