mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:15:38 +00:00
gdiplus: Add test for GdipNewInstalledFontCollection.
This commit is contained in:
parent
a3221e7f23
commit
31f2b8e1ea
|
@ -340,6 +340,19 @@ monospace:
|
||||||
expect (Ok, stat);
|
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)
|
START_TEST(font)
|
||||||
{
|
{
|
||||||
struct GdiplusStartupInput gdiplusStartupInput;
|
struct GdiplusStartupInput gdiplusStartupInput;
|
||||||
|
@ -357,6 +370,7 @@ START_TEST(font)
|
||||||
test_fontfamily();
|
test_fontfamily();
|
||||||
test_fontfamily_properties();
|
test_fontfamily_properties();
|
||||||
test_getgenerics();
|
test_getgenerics();
|
||||||
|
test_installedfonts();
|
||||||
|
|
||||||
GdiplusShutdown(gdiplusToken);
|
GdiplusShutdown(gdiplusToken);
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,7 @@ GpStatus WINGDIPAPI GdipGetFontHeight(GDIPCONST GpFont*, GDIPCONST GpGraphics*,
|
||||||
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont*, REAL, REAL*);
|
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont*, REAL, REAL*);
|
||||||
|
|
||||||
/* FontCollection */
|
/* FontCollection */
|
||||||
|
GpStatus WINGDIPAPI GdipNewInstalledFontCollection(GpFontCollection**);
|
||||||
GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection**);
|
GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection**);
|
||||||
GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection**);
|
GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection**);
|
||||||
GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection*, GDIPCONST WCHAR*);
|
GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection*, GDIPCONST WCHAR*);
|
||||||
|
|
Loading…
Reference in a new issue