André Hentschel : t2embed: Add stub for TTEmbedFont.

Alexandre Julliard julliard at winehq.org
Thu Mar 3 11:46:22 CST 2011


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Mar  3 13:09:56 2011 +0100

t2embed: Add stub for TTEmbedFont.

---

 dlls/t2embed/main.c       |   13 +++++++++++++
 dlls/t2embed/t2embed.spec |    4 ++--
 include/t2embapi.h        |    8 ++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c
index 6d12eff..f3f1a00 100644
--- a/dlls/t2embed/main.c
+++ b/dlls/t2embed/main.c
@@ -60,6 +60,19 @@ LONG WINAPI TTLoadEmbeddedFont(HANDLE *phFontReference, ULONG ulFlags,
     return E_API_NOTIMPL;
 }
 
+LONG WINAPI TTEmbedFont(HDC hDC, ULONG ulFlags, ULONG ulCharSet, ULONG *pulPrivStatus,
+                         ULONG *pulStatus, WRITEEMBEDPROC lpfnWriteToStream, LPVOID lpvWriteStream,
+                         USHORT *pusCharCodeSet, USHORT usCharCodeCount, USHORT usLanguage,
+                         TTEMBEDINFO *pTTEmbedInfo)
+{
+    FIXME("(%p 0x%08x 0x%08x %p %p %p %p %p %u %u %p) stub\n", hDC,
+          ulFlags, ulCharSet, pulPrivStatus, pulStatus, lpfnWriteToStream,
+          lpvWriteStream, pusCharCodeSet, usCharCodeCount, usLanguage,
+          pTTEmbedInfo);
+
+    return E_API_NOTIMPL;
+}
+
 LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status)
 {
     FIXME("(%p %p) stub\n", hDC, status);
diff --git a/dlls/t2embed/t2embed.spec b/dlls/t2embed/t2embed.spec
index 2566fa2..120eaaa 100644
--- a/dlls/t2embed/t2embed.spec
+++ b/dlls/t2embed/t2embed.spec
@@ -1,6 +1,6 @@
 @ stub TTCharToUnicode
 @ stub TTDeleteEmbeddedFont
-@ stub TTEmbedFont
+@ stdcall TTEmbedFont(ptr long long ptr ptr ptr ptr ptr long long ptr)
 @ stub TTEmbedFontFromFileA
 @ stub TTEnableEmbeddingForFacename
 @ stub TTGetEmbeddedFontInfo
@@ -11,7 +11,7 @@
 @ stub TTRunValidationTests
 @ stub _TTCharToUnicode at 24
 @ stub _TTDeleteEmbeddedFont at 12
-@ stub _TTEmbedFont at 44
+@ stdcall _TTEmbedFont at 44(ptr long long ptr ptr ptr ptr ptr long long ptr) TTEmbedFont
 @ stub _TTEmbedFontFromFileA at 52
 @ stub _TTEnableEmbeddingForFacename at 8
 @ stub _TTGetEmbeddedFontInfo at 28
diff --git a/include/t2embapi.h b/include/t2embapi.h
index d0ddef2..151bfc1 100644
--- a/include/t2embapi.h
+++ b/include/t2embapi.h
@@ -28,6 +28,7 @@ extern "C" {
 #define E_API_NOTIMPL                       0x0001L
 
 typedef ULONG (WINAPIV * READEMBEDPROC)(void*,void*,ULONG);
+typedef ULONG (WINAPIV * WRITEEMBEDPROC)(void*,void*,ULONG);
 
 typedef struct
 {
@@ -36,6 +37,13 @@ typedef struct
     unsigned short *pusRefStr;
 } TTLOADINFO;
 
+typedef struct
+{
+    unsigned short usStructSize;
+    unsigned short usRootStrSize;
+    unsigned short *pusRootStr;
+} TTEMBEDINFO;
+
 LONG WINAPI TTLoadEmbeddedFont(HANDLE*,ULONG,ULONG*,ULONG,ULONG*,READEMBEDPROC,
                                LPVOID,LPWSTR,LPSTR,TTLOADINFO*);
 




More information about the wine-cvs mailing list