[Gdiplus 07/16] Stub GdipGetLineSpacing
Adam Petaccia
adam at tpetaccia.com
Wed Jul 2 12:25:14 CDT 2008
---
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 6b8c4cf..22b3a32 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -491,6 +491,30 @@ GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
return Ok;
}
+/*******************************************************************************
+ * GdipGetLineSpacing [GDIPLUS.@]
+ *
+ * Returns the line spacing in design units
+ *
+ * PARAMS
+ * family [I] Family to retrieve from
+ * style [I] (Optional) font style
+ * LineSpacing [O] Return value
+ *
+ * RETURNS
+ * SUCCESS: Ok
+ * FAILURE: InvalidParameter (family or LineSpacing was NULL)
+ */
+GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily *family,
+ INT style, UINT16* LineSpacing)
+{
+ if (!(family && LineSpacing)) return InvalidParameter;
+
+ FIXME("stub!\n");
+
+ return NotImplemented;
+}
+
/*****************************************************************************
* GdipGetGenericFontFamilyMonospace [GDIPLUS.@]
*
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 09bd28e..e65a102 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -308,7 +308,7 @@
@ stub GdipGetLinePresetBlendCount
@ stdcall GdipGetLineRect(ptr ptr)
@ stdcall GdipGetLineRectI(ptr ptr)
-@ stub GdipGetLineSpacing
+@ stdcall GdipGetLineSpacing(ptr long ptr)
@ stub GdipGetLineTransform
@ stub GdipGetLineWrapMode
@ stub GdipGetLogFontA
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index a90a496..3abdeff 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -372,6 +372,7 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR*,
GpStatus WINGDIPAPI GdipCloneFontFamily(GpFontFamily*, GpFontFamily**);
GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily*);
GpStatus WINGDIPAPI GdipGetFamilyName(GDIPCONST GpFontFamily*, WCHAR*, LANGID);
+GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily*, INT, UINT16*);
GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily**);
GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif(GpFontFamily**);
--
1.5.4.3
More information about the wine-patches
mailing list