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
31f2b8e1
Commit
31f2b8e1
authored
Jan 28, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Apr 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add test for GdipNewInstalledFontCollection.
parent
a3221e7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
font.c
dlls/gdiplus/tests/font.c
+14
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/tests/font.c
View file @
31f2b8e1
...
...
@@ -340,6 +340,19 @@ monospace:
expect
(
Ok
,
stat
);
}
static
void
test_installedfonts
(
void
)
{
GpStatus
stat
;
GpFontCollection
*
collection
=
NULL
;
stat
=
GdipNewInstalledFontCollection
(
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipNewInstalledFontCollection
(
&
collection
);
todo_wine
expect
(
Ok
,
stat
);
todo_wine
ok
(
collection
!=
NULL
,
"got NULL font collection
\n
"
);
}
START_TEST
(
font
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -357,6 +370,7 @@ START_TEST(font)
test_fontfamily
();
test_fontfamily_properties
();
test_getgenerics
();
test_installedfonts
();
GdiplusShutdown
(
gdiplusToken
);
}
include/gdiplusflat.h
View file @
31f2b8e1
...
...
@@ -93,6 +93,7 @@ GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont*, GDIPCONST GpGraphics*,
GpStatus
WINGDIPAPI
GdipGetFontHeightGivenDPI
(
GDIPCONST
GpFont
*
,
REAL
,
REAL
*
);
/* FontCollection */
GpStatus
WINGDIPAPI
GdipNewInstalledFontCollection
(
GpFontCollection
**
);
GpStatus
WINGDIPAPI
GdipNewPrivateFontCollection
(
GpFontCollection
**
);
GpStatus
WINGDIPAPI
GdipDeletePrivateFontCollection
(
GpFontCollection
**
);
GpStatus
WINGDIPAPI
GdipPrivateAddFontFile
(
GpFontCollection
*
,
GDIPCONST
WCHAR
*
);
...
...
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