From 70c747d9f7e2bfbb4b8281893ea863937e50b1f5 Mon Sep 17 00:00:00 2001 From: Adam Petaccia Date: Tue, 22 Jul 2008 23:07:45 -0400 Subject: [PATCH] gdiplus: Stub GdipGetFontCollectionFamilyList. --- dlls/gdiplus/font.c | 13 +++++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- include/gdiplusflat.h | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 401c1618cc8..65e379f7911 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -675,3 +675,16 @@ GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount( return NotImplemented; } + +GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList( + GpFontCollection* fontCollection, INT numSought, + GpFontFamily* gpfamilies[], INT* numFound) +{ + FIXME("stub: %p, %d, %p, %p\n", fontCollection, numSought, gpfamilies, + numFound); + + if (!(fontCollection && gpfamilies && numFound)) + return InvalidParameter; + + return NotImplemented; +} diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index ccb147e978a..a04e550a43a 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -266,7 +266,7 @@ @ stub GdipGetFamily @ stdcall GdipGetFamilyName(ptr ptr long) @ stdcall GdipGetFontCollectionFamilyCount(ptr ptr) -@ stub GdipGetFontCollectionFamilyList +@ stdcall GdipGetFontCollectionFamilyList(ptr long ptr ptr) @ stub GdipGetFontHeight @ stdcall GdipGetFontHeightGivenDPI(ptr long ptr) @ stdcall GdipGetFontSize(ptr ptr) diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 0c60f60c039..22b6efc2956 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -424,6 +424,8 @@ GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection**); GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection**); GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection*, GDIPCONST WCHAR*); GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(GpFontCollection*, INT*); +GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(GpFontCollection*, INT, + GpFontFamily*[], INT*); GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**); GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*);