Adam Petaccia : gdiplus: Stub GdipGetFamily.

Alexandre Julliard julliard at winehq.org
Thu Aug 28 07:00:45 CDT 2008


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

Author: Adam Petaccia <adam at tpetaccia.com>
Date:   Wed Aug 27 17:21:34 2008 -0400

gdiplus: Stub GdipGetFamily.

---

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

diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 70f7bb0..6ed18ae 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -250,6 +250,26 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
     return GdipCreateFontFromLogfontW(hdc, &lfw, font);
 }
 
+/*******************************************************************************
+ * GdipGetFamily [GDIPLUS.@]
+ *
+ * Returns the FontFamily for the specified Font
+ *
+ * PARAMS
+ *  font    [I] Font to request from
+ *  family  [O] Resulting FontFamily object
+ *
+ * RETURNS
+ *  SUCCESS: Ok
+ *  FAILURE: An element of GpStatus
+ */
+GpStatus WINGDIPAPI GdipGetFamily(GpFont *font, GpFontFamily **family)
+{
+    FIXME("stub: %p %p\n", font, family);
+
+    return NotImplemented;
+}
+
 /******************************************************************************
  * GdipGetFontSize [GDIPLUS.@]
  *
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index b45f917..3cf9544 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -263,7 +263,7 @@
 @ stdcall GdipGetEmHeight(ptr long ptr)
 @ stub GdipGetEncoderParameterList
 @ stub GdipGetEncoderParameterListSize
-@ stub GdipGetFamily
+@ stdcall GdipGetFamily(ptr ptr)
 @ stdcall GdipGetFamilyName(ptr ptr long)
 @ stdcall GdipGetFontCollectionFamilyCount(ptr ptr)
 @ stdcall GdipGetFontCollectionFamilyList(ptr long ptr ptr)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index ec72087..37476d8 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -434,6 +434,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC,GDIPCONST LOGFONTW*,GpFont**)
 GpStatus WINGDIPAPI GdipDeleteFont(GpFont*);
 GpStatus WINGDIPAPI GdipGetLogFontW(GpFont*,GpGraphics*,LOGFONTW*);
 GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
+GpStatus WINGDIPAPI GdipGetFamily(GpFont*, GpFontFamily**);
 GpStatus WINGDIPAPI GdipGetFontUnit(GpFont*, Unit*);
 GpStatus WINGDIPAPI GdipGetFontSize(GpFont*, REAL*);
 GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont*, REAL, REAL*);




More information about the wine-cvs mailing list