Hans Leidekker : gdiplus: Add a stub implementation of GdipPrivateAddMemoryFont.
Alexandre Julliard
julliard at winehq.org
Mon Nov 24 09:16:50 CST 2008
Module: wine
Branch: master
Commit: 2b8c6fe4db90736a99a8459d0f904f726b14e4e0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b8c6fe4db90736a99a8459d0f904f726b14e4e0
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Nov 24 10:22:06 2008 +0100
gdiplus: Add a stub implementation of GdipPrivateAddMemoryFont.
---
dlls/gdiplus/font.c | 14 ++++++++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 71df288..829dc57 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -835,6 +835,20 @@ GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection* fontCollection,
}
/*****************************************************************************
+ * GdipPrivateAddMemoryFont [GDIPLUS.@]
+ */
+GpStatus WINGDIPAPI GdipPrivateAddMemoryFont(GpFontCollection* fontCollection,
+ GDIPCONST void* memory, INT length)
+{
+ FIXME("%p, %p, %d\n", fontCollection, memory, length);
+
+ if (!(fontCollection && memory && length))
+ return InvalidParameter;
+
+ return Ok;
+}
+
+/*****************************************************************************
* GdipGetFontCollectionFamilyCount [GDIPLUS.@]
*/
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 7a303af..c61a914 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -465,7 +465,7 @@
@ stub GdipPlayMetafileRecord
@ stub GdipPlayTSClientRecord
@ stdcall GdipPrivateAddFontFile(ptr wstr)
-@ stub GdipPrivateAddMemoryFont
+@ stdcall GdipPrivateAddMemoryFont(ptr ptr long)
@ stub GdipRecordMetafile
@ stdcall GdipRecordMetafileFileName(wstr long long ptr long wstr ptr)
@ stdcall GdipRecordMetafileFileNameI(wstr long long ptr long wstr ptr)
More information about the wine-cvs
mailing list