Adam Petaccia : gdiplus: Stub GdipGetEmHeight.
Alexandre Julliard
julliard at winehq.org
Mon Jul 7 09:19:34 CDT 2008
Module: wine
Branch: master
Commit: 33cb831f24c494feae5be0fccc10c0ed94478ee6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=33cb831f24c494feae5be0fccc10c0ed94478ee6
Author: Adam Petaccia <adam at tpetaccia.com>
Date: Thu Jul 3 14:26:30 2008 -0400
gdiplus: Stub GdipGetEmHeight.
---
dlls/gdiplus/font.c | 24 ++++++++++++++++++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
include/gdiplusflat.h | 1 +
3 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 988a568..c2556cd 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -492,6 +492,30 @@ GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
}
/*******************************************************************************
+ * GdipGetEmHeight [GDIPLUS.@]
+ *
+ * Gets the height of the specified family in EmHeights
+ *
+ * PARAMS
+ * family [I] Family to retrieve from
+ * style [I] (optional) style
+ * EmHeight [O] return value
+ *
+ * RETURNS
+ * SUCCESS: Ok
+ * FAILURE: InvalidParameter
+ */
+GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, UINT16* EmHeight)
+{
+ if (!(family && EmHeight)) return InvalidParameter;
+
+ FIXME("Stub!\n");
+
+ return NotImplemented;
+}
+
+
+/*******************************************************************************
* GdipGetLineSpacing [GDIPLUS.@]
*
* Returns the line spacing in design units
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 4af8fb8..971eafd 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -260,7 +260,7 @@
@ stdcall GdipGetDpiY(ptr ptr)
@ stub GdipGetEffectParameterSize
@ stub GdipGetEffectParameters
-@ stub GdipGetEmHeight
+@ stdcall GdipGetEmHeight(ptr long ptr)
@ stub GdipGetEncoderParameterList
@ stub GdipGetEncoderParameterListSize
@ stub GdipGetFamily
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 0cc3448..aba8bd9 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -378,6 +378,7 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
GpStatus WINGDIPAPI GdipCloneFontFamily(GpFontFamily*, GpFontFamily**);
GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily*);
GpStatus WINGDIPAPI GdipGetFamilyName(GDIPCONST GpFontFamily*, WCHAR*, LANGID);
+GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily*, INT, UINT16*);
GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily*, INT, UINT16*);
GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily**);
More information about the wine-cvs
mailing list