Adam Petaccia : gdiplus: Stub GdipGetFontCollectionFamilyCount.

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


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

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

gdiplus: Stub GdipGetFontCollectionFamilyCount.

---

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

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 1f7b187..401c161 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -664,3 +664,14 @@ GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection* fontCollection,
 
     return NotImplemented;
 }
+
+GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(
+        GpFontCollection* fontCollection, INT* numFound)
+{
+    FIXME("stub: %p, %p\n", fontCollection, numFound);
+
+    if (!(fontCollection && numFound))
+        return InvalidParameter;
+
+    return NotImplemented;
+}
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 6b4773a..ccb147e 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -265,7 +265,7 @@
 @ stub GdipGetEncoderParameterListSize
 @ stub GdipGetFamily
 @ stdcall GdipGetFamilyName(ptr ptr long)
-@ stub GdipGetFontCollectionFamilyCount
+@ stdcall GdipGetFontCollectionFamilyCount(ptr ptr)
 @ stub GdipGetFontCollectionFamilyList
 @ stub GdipGetFontHeight
 @ stdcall GdipGetFontHeightGivenDPI(ptr long ptr)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 9e998c5..0c60f60 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -423,6 +423,7 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily**);
 GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection**);
 GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection**);
 GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection*, GDIPCONST WCHAR*);
+GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(GpFontCollection*, INT*);
 
 GpStatus WINGDIPAPI GdipCreateStringFormat(INT,LANGID,GpStringFormat**);
 GpStatus WINGDIPAPI GdipDeleteStringFormat(GpStringFormat*);




More information about the wine-cvs mailing list