Module: wine Branch: master Commit: 29d5887b5c4c24b8d52988324fbea65a5dacb696 URL: http://source.winehq.org/git/wine.git/?a=commit;h=29d5887b5c4c24b8d52988324f...
Author: André Hentschel nerv@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@24 @ stub _TTDeleteEmbeddedFont@12 -@ stub _TTEmbedFont@44 +@ stdcall _TTEmbedFont@44(ptr long long ptr ptr ptr ptr ptr long long ptr) TTEmbedFont @ stub _TTEmbedFontFromFileA@52 @ stub _TTEnableEmbeddingForFacename@8 @ stub _TTGetEmbeddedFontInfo@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*);