Adam Petaccia : gdiplus: Stub GdipGetFontCollectionFamilyList.

Alexandre Julliard julliard at winehq.org
Wed Jul 23 07:10:05 CDT 2008


Module: wine
Branch: master
Commit: 70c747d9f7e2bfbb4b8281893ea863937e50b1f5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=70c747d9f7e2bfbb4b8281893ea863937e50b1f5

Author: Adam Petaccia <adam at tpetaccia.com>
Date:   Tue Jul 22 23:07:45 2008 -0400

gdiplus: Stub GdipGetFontCollectionFamilyList.

---

 dlls/gdiplus/font.c       |   13 +++++++++++++
 dlls/gdiplus/gdiplus.spec |    2 +-
 include/gdiplusflat.h     |    2 ++
 3 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 401c161..65e379f 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 ccb147e..a04e550 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 0c60f60..22b6efc 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*);




More information about the wine-cvs mailing list