Andrew Nguyen : t2embed: Implement TTLoadEmbeddedFont as a stub.

Alexandre Julliard julliard at winehq.org
Thu Jul 16 11:58:24 CDT 2009


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

Author: Andrew Nguyen <arethusa26 at gmail.com>
Date:   Wed Jul 15 22:00:22 2009 -0500

t2embed: Implement TTLoadEmbeddedFont as a stub.

---

 dlls/t2embed/main.c       |   18 +++++++++++++++++
 dlls/t2embed/t2embed.spec |    2 +-
 include/Makefile.in       |    1 +
 include/t2embapi.h        |   46 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 66 insertions(+), 1 deletions(-)

diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c
index 8962248..c9c5dc5 100644
--- a/dlls/t2embed/main.c
+++ b/dlls/t2embed/main.c
@@ -24,6 +24,10 @@
 
 #include "windef.h"
 #include "winbase.h"
+#include "t2embapi.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(t2embed);
 
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
@@ -41,3 +45,17 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 
     return TRUE;
 }
+
+LONG WINAPI TTLoadEmbeddedFont(HANDLE *phFontReference, ULONG ulFlags,
+                               ULONG *pulPrivStatus, ULONG ulPrivs,
+                               ULONG *pulStatus, READEMBEDPROC lpfnReadFromStream,
+                               LPVOID lpvReadStream, LPWSTR szWinFamilyName,
+                               LPSTR szMacFamilyName, TTLOADINFO *pTTLoadInfo)
+{
+    FIXME("(%p 0x%08x %p 0x%08x %p %p %p %s %s %p) stub\n", phFontReference,
+          ulFlags, pulPrivStatus, ulPrivs, pulStatus, lpfnReadFromStream,
+          lpvReadStream, debugstr_w(szWinFamilyName), szMacFamilyName,
+          pTTLoadInfo);
+
+    return E_API_NOTIMPL;
+}
diff --git a/dlls/t2embed/t2embed.spec b/dlls/t2embed/t2embed.spec
index ed0c71f..ed5d25b 100644
--- a/dlls/t2embed/t2embed.spec
+++ b/dlls/t2embed/t2embed.spec
@@ -7,7 +7,7 @@
 @ stub TTGetEmbeddingType
 @ stub TTIsEmbeddingEnabled
 @ stub TTIsEmbeddingEnabledForFacename
-@ stub TTLoadEmbeddedFont
+@ stdcall TTLoadEmbeddedFont(ptr long ptr long ptr ptr ptr wstr str ptr)
 @ stub TTRunValidationTests
 @ stub _TTCharToUnicode at 24
 @ stub _TTDeleteEmbeddedFont at 12
diff --git a/include/Makefile.in b/include/Makefile.in
index f238003..68e8974 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -415,6 +415,7 @@ SRCDIR_INCLUDES = \
 	sspi.h \
 	storage.h \
 	svrapi.h \
+	t2embapi.h \
 	tapi.h \
 	tchar.h \
 	textserv.h \
diff --git a/include/t2embapi.h b/include/t2embapi.h
new file mode 100644
index 0000000..f199764
--- /dev/null
+++ b/include/t2embapi.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2009 Andrew Nguyen
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_T2EMBAPI_H
+#define __WINE_T2EMBAPI_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Possible return values. */
+#define E_NONE                              0x0000L
+#define E_API_NOTIMPL                       0x0001L
+
+typedef ULONG (WINAPIV * READEMBEDPROC)(void*,void*,ULONG);
+
+typedef struct
+{
+    unsigned short usStructSize;
+    unsigned short usRefStrSize;
+    unsigned short *pusRefStr;
+} TTLOADINFO;
+
+LONG WINAPI TTLoadEmbeddedFont(HANDLE*,ULONG,ULONG*,ULONG,ULONG*,READEMBEDPROC,
+                               LPVOID,LPWSTR,LPSTR,TTLOADINFO*);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif




More information about the wine-cvs mailing list