t2embed: Add stub for TTEmbedFont.

This commit is contained in:
André Hentschel 2011-03-03 13:09:56 +01:00 committed by Alexandre Julliard
parent 09dd285d8c
commit 29d5887b5c
3 changed files with 23 additions and 2 deletions

View File

@ -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);

View File

@ -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

View File

@ -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*);