ReactOS  0.4.15-dev-2776-g4130f0b
t2embapi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TTVALIDATIONTESTPARAMS
 
struct  TTVALIDATIONTESTPARAMSEX
 
struct  TTEMBEDINFO
 
struct  TTLOADINFO
 

Macros

#define CHARSET_UNICODE   1
 
#define CHARSET_DEFAULT   1
 
#define CHARSET_SYMBOL   2
 
#define CHARSET_GLYPHIDX   3
 
#define EMBED_PREVIEWPRINT   1
 
#define EMBED_EDITABLE   2
 
#define EMBED_INSTALLABLE   3
 
#define EMBED_NOEMBEDDING   4
 
#define LICENSE_INSTALLABLE   0x0
 
#define LICENSE_DEFAULT   0x0
 
#define LICENSE_NOEMBEDDING   0x2
 
#define LICENSE_PREVIEWPRINT   0x4
 
#define LICENSE_EDITABLE   0x8
 
#define TTEMBED_RAW   0x0
 
#define TTEMBED_SUBSET   0x1
 
#define TTEMBED_TTCOMPRESSED   0x4
 
#define TTEMBED_FAILIFVARIATIONSIMULATED   0x10
 
#define TTEMBED_EMBEDEUDC   0x20
 
#define TTEMBED_VALIDATIONTESTS   0x40
 
#define TTEMBED_WEBOBJECT   0x80
 
#define TTEMBED_ENCRYPTDATA   0x10000000
 
#define E_NONE   0x0
 
#define E_API_NOTIMPL   0x0001L
 
#define E_CHARCODECOUNTINVALID   0x2
 
#define E_CHARCODESETINVALID   0x3
 
#define E_DEVICETRUETYPEFONT   0x4
 
#define E_HDCINVALID   0x6
 
#define E_NOFREEMEMORY   0x7
 
#define E_FONTREFERENCEINVALID   0x8
 
#define E_NOTATRUETYPEFONT   0xA
 
#define E_ERRORACCESSINGFONTDATA   0xC
 
#define E_ERRORACCESSINGFACENAME   0xD
 
#define E_ERRORUNICODECONVERSION   0x11
 
#define E_ERRORCONVERTINGCHARS   0x12
 
#define E_EXCEPTION   0x13
 
#define E_RESERVEDPARAMNOTNULL   0x14
 
#define E_CHARSETINVALID   0x15
 
#define E_WIN32S_NOTSUPPORTED   0x16
 
#define E_FILE_NOT_FOUND   0x17
 
#define E_TTC_INDEX_OUT_OF_RANGE   0x18
 
#define E_INPUTPARAMINVALID   0x19
 
#define E_ERRORCOMPRESSINGFONTDATA   0x100
 
#define E_FONTDATAINVALID   0x102
 
#define E_NAMECHANGEFAILED   0x103
 
#define E_FONTNOTEMBEDDABLE   0x104
 
#define E_PRIVSINVALID   0x105
 
#define E_SUBSETTINGFAILED   0x106
 
#define E_READFROMSTREAMFAILED   0x107
 
#define E_SAVETOSTREAMFAILED   0x108
 
#define E_NOOS2   0x109
 
#define E_T2NOFREEMEMORY   0x10A
 
#define E_ERRORREADINGFONTDATA   0x10B
 
#define E_FLAGSINVALID   0x10C
 
#define E_ERRORCREATINGFONTFILE   0x10D
 
#define E_FONTALREADYEXISTS   0x10E
 
#define E_FONTNAMEALREADYEXISTS   0x10F
 
#define E_FONTINSTALLFAILED   0x110
 
#define E_ERRORDECOMPRESSINGFONTDATA   0x111
 
#define E_ERRORACCESSINGEXCLUDELIST   0x112
 
#define E_FACENAMEINVALID   0x113
 
#define E_STREAMINVALID   0x114
 
#define E_STATUSINVALID   0x115
 
#define E_PRIVSTATUSINVALID   0x116
 
#define E_PERMISSIONSINVALID   0x117
 
#define E_PBENABLEDINVALID   0x118
 
#define E_SUBSETTINGEXCEPTION   0x119
 
#define E_SUBSTRING_TEST_FAIL   0x11A
 
#define E_FONTVARIATIONSIMULATED   0x11B
 
#define E_FONTVALIDATEFAIL   0x11C
 
#define E_FONTFAMILYNAMENOTINFULL   0x11D
 
#define E_ADDFONTFAILED   0x200
 
#define E_COULDNTCREATETEMPFILE   0x201
 
#define E_FONTFILECREATEFAILED   0x203
 
#define E_WINDOWSAPI   0x204
 
#define E_FONTFILENOTFOUND   0x205
 
#define E_RESOURCEFILECREATEFAILED   0x206
 
#define E_ERROREXPANDINGFONTDATA   0x207
 
#define E_ERRORGETTINGDC   0x208
 
#define E_EXCEPTIONINDECOMPRESSION   0x209
 
#define E_EXCEPTIONINCOMPRESSION   0x20A
 

Typedefs

typedef unsigned long(WINAPIVWRITEEMBEDPROC) (void *lpvWriteStream, const void *lpvBuffer, const unsigned long cbBuffer)
 
typedef unsigned long(WINAPIVREADEMBEDPROC) (void *lpvReadStream, void *lpvBuffer, const unsigned long cbBuffer)
 

Functions

LONG WINAPI TTCharToUnicode (HDC hDC, UCHAR *pucCharCodes, ULONG ulCharCodeSize, USHORT *pusShortCodes, ULONG ulShortCodeSize, ULONG ulFlags)
 
LONG WINAPI TTDeleteEmbeddedFont (HANDLE hFontReference, ULONG ulFlags, ULONG *pulStatus)
 
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)
 
LONG WINAPI TTEmbedFontFromFileA (HDC hDC, LPCSTR szFontFileName, USHORT usTTCIndex, ULONG ulFlags, ULONG ulCharSet, ULONG *pulPrivStatus, ULONG *pulStatus, WRITEEMBEDPROC lpfnWriteToStream, LPVOID lpvWriteStream, USHORT *pusCharCodeSet, USHORT usCharCodeCount, USHORT usLanguage, TTEMBEDINFO *pTTEmbedInfo)
 
LONG WINAPI TTEnableEmbeddingForFacename (LPSTR lpszFacename, BOOL bEnable)
 
LONG WINAPI TTGetEmbeddedFontInfo (ULONG ulFlags, ULONG *pulPrivStatus, ULONG ulPrivs, ULONG *pulStatus, READEMBEDPROC lpfnReadFromStream, LPVOID lpvReadStream, TTLOADINFO *pTTLoadInfo)
 
LONG WINAPI TTGetEmbeddingType (HDC hDC, ULONG *pulPrivStatus)
 
LONG WINAPI TTIsEmbeddingEnabled (HDC hDC, BOOL *pbEnabled)
 
LONG WINAPI TTIsEmbeddingEnabledForFacename (LPCSTR lpszFacename, BOOL *pbEnabled)
 
LONG WINAPI TTLoadEmbeddedFont (HANDLE *phFontReference, ULONG ulFlags, ULONG *pulPrivStatus, ULONG ulPrivs, ULONG *pulStatus, READEMBEDPROC lpfnReadFromStream, LPVOID lpvReadStream, LPWSTR szWinFamilyName, LPSTR szMacFamilyName, TTLOADINFO *pTTLoadInfo)
 
LONG WINAPI TTRunValidationTests (HDC hDC, TTVALIDATIONTESTPARAMS *pTestParam)
 
LONG WINAPI TTEmbedFontEx (HDC hDC, ULONG ulFlags, ULONG ulCharSet, ULONG *pulPrivStatus, ULONG *pulStatus, WRITEEMBEDPROC lpfnWriteToStream, LPVOID lpvWriteStream, ULONG *pulCharCodeSet, USHORT usCharCodeCount, USHORT usLanguage, TTEMBEDINFO *pTTEmbedInfo)
 
LONG WINAPI TTRunValidationTestsEx (HDC hDC, TTVALIDATIONTESTPARAMSEX *pTestParam)
 
LONG WINAPI TTGetNewFontName (HANDLE *phFontReference, LPWSTR szWinFamilyName, long cchMaxWinName, LPSTR szMacFamilyName, long cchMaxMacName)
 

Macro Definition Documentation

◆ CHARSET_DEFAULT

#define CHARSET_DEFAULT   1

Definition at line 6 of file t2embapi.h.

◆ CHARSET_GLYPHIDX

#define CHARSET_GLYPHIDX   3

Definition at line 8 of file t2embapi.h.

◆ CHARSET_SYMBOL

#define CHARSET_SYMBOL   2

Definition at line 7 of file t2embapi.h.

◆ CHARSET_UNICODE

#define CHARSET_UNICODE   1

Definition at line 5 of file t2embapi.h.

◆ E_ADDFONTFAILED

#define E_ADDFONTFAILED   0x200

Definition at line 97 of file t2embapi.h.

◆ E_API_NOTIMPL

#define E_API_NOTIMPL   0x0001L

Definition at line 41 of file t2embapi.h.

◆ E_CHARCODECOUNTINVALID

#define E_CHARCODECOUNTINVALID   0x2

Definition at line 44 of file t2embapi.h.

◆ E_CHARCODESETINVALID

#define E_CHARCODESETINVALID   0x3

Definition at line 45 of file t2embapi.h.

◆ E_CHARSETINVALID

#define E_CHARSETINVALID   0x15

Definition at line 57 of file t2embapi.h.

◆ E_COULDNTCREATETEMPFILE

#define E_COULDNTCREATETEMPFILE   0x201

Definition at line 98 of file t2embapi.h.

◆ E_DEVICETRUETYPEFONT

#define E_DEVICETRUETYPEFONT   0x4

Definition at line 46 of file t2embapi.h.

◆ E_ERRORACCESSINGEXCLUDELIST

#define E_ERRORACCESSINGEXCLUDELIST   0x112

Definition at line 82 of file t2embapi.h.

◆ E_ERRORACCESSINGFACENAME

#define E_ERRORACCESSINGFACENAME   0xD

Definition at line 52 of file t2embapi.h.

◆ E_ERRORACCESSINGFONTDATA

#define E_ERRORACCESSINGFONTDATA   0xC

Definition at line 51 of file t2embapi.h.

◆ E_ERRORCOMPRESSINGFONTDATA

#define E_ERRORCOMPRESSINGFONTDATA   0x100

Definition at line 65 of file t2embapi.h.

◆ E_ERRORCONVERTINGCHARS

#define E_ERRORCONVERTINGCHARS   0x12

Definition at line 54 of file t2embapi.h.

◆ E_ERRORCREATINGFONTFILE

#define E_ERRORCREATINGFONTFILE   0x10D

Definition at line 77 of file t2embapi.h.

◆ E_ERRORDECOMPRESSINGFONTDATA

#define E_ERRORDECOMPRESSINGFONTDATA   0x111

Definition at line 81 of file t2embapi.h.

◆ E_ERROREXPANDINGFONTDATA

#define E_ERROREXPANDINGFONTDATA   0x207

Definition at line 103 of file t2embapi.h.

◆ E_ERRORGETTINGDC

#define E_ERRORGETTINGDC   0x208

Definition at line 104 of file t2embapi.h.

◆ E_ERRORREADINGFONTDATA

#define E_ERRORREADINGFONTDATA   0x10B

Definition at line 75 of file t2embapi.h.

◆ E_ERRORUNICODECONVERSION

#define E_ERRORUNICODECONVERSION   0x11

Definition at line 53 of file t2embapi.h.

◆ E_EXCEPTION

#define E_EXCEPTION   0x13

Definition at line 55 of file t2embapi.h.

◆ E_EXCEPTIONINCOMPRESSION

#define E_EXCEPTIONINCOMPRESSION   0x20A

Definition at line 106 of file t2embapi.h.

◆ E_EXCEPTIONINDECOMPRESSION

#define E_EXCEPTIONINDECOMPRESSION   0x209

Definition at line 105 of file t2embapi.h.

◆ E_FACENAMEINVALID

#define E_FACENAMEINVALID   0x113

Definition at line 83 of file t2embapi.h.

◆ E_FILE_NOT_FOUND

#define E_FILE_NOT_FOUND   0x17

Definition at line 59 of file t2embapi.h.

◆ E_FLAGSINVALID

#define E_FLAGSINVALID   0x10C

Definition at line 76 of file t2embapi.h.

◆ E_FONTALREADYEXISTS

#define E_FONTALREADYEXISTS   0x10E

Definition at line 78 of file t2embapi.h.

◆ E_FONTDATAINVALID

#define E_FONTDATAINVALID   0x102

Definition at line 66 of file t2embapi.h.

◆ E_FONTFAMILYNAMENOTINFULL

#define E_FONTFAMILYNAMENOTINFULL   0x11D

Definition at line 93 of file t2embapi.h.

◆ E_FONTFILECREATEFAILED

#define E_FONTFILECREATEFAILED   0x203

Definition at line 99 of file t2embapi.h.

◆ E_FONTFILENOTFOUND

#define E_FONTFILENOTFOUND   0x205

Definition at line 101 of file t2embapi.h.

◆ E_FONTINSTALLFAILED

#define E_FONTINSTALLFAILED   0x110

Definition at line 80 of file t2embapi.h.

◆ E_FONTNAMEALREADYEXISTS

#define E_FONTNAMEALREADYEXISTS   0x10F

Definition at line 79 of file t2embapi.h.

◆ E_FONTNOTEMBEDDABLE

#define E_FONTNOTEMBEDDABLE   0x104

Definition at line 68 of file t2embapi.h.

◆ E_FONTREFERENCEINVALID

#define E_FONTREFERENCEINVALID   0x8

Definition at line 49 of file t2embapi.h.

◆ E_FONTVALIDATEFAIL

#define E_FONTVALIDATEFAIL   0x11C

Definition at line 92 of file t2embapi.h.

◆ E_FONTVARIATIONSIMULATED

#define E_FONTVARIATIONSIMULATED   0x11B

Definition at line 91 of file t2embapi.h.

◆ E_HDCINVALID

#define E_HDCINVALID   0x6

Definition at line 47 of file t2embapi.h.

◆ E_INPUTPARAMINVALID

#define E_INPUTPARAMINVALID   0x19

Definition at line 61 of file t2embapi.h.

◆ E_NAMECHANGEFAILED

#define E_NAMECHANGEFAILED   0x103

Definition at line 67 of file t2embapi.h.

◆ E_NOFREEMEMORY

#define E_NOFREEMEMORY   0x7

Definition at line 48 of file t2embapi.h.

◆ E_NONE

#define E_NONE   0x0

Definition at line 38 of file t2embapi.h.

◆ E_NOOS2

#define E_NOOS2   0x109

Definition at line 73 of file t2embapi.h.

◆ E_NOTATRUETYPEFONT

#define E_NOTATRUETYPEFONT   0xA

Definition at line 50 of file t2embapi.h.

◆ E_PBENABLEDINVALID

#define E_PBENABLEDINVALID   0x118

Definition at line 88 of file t2embapi.h.

◆ E_PERMISSIONSINVALID

#define E_PERMISSIONSINVALID   0x117

Definition at line 87 of file t2embapi.h.

◆ E_PRIVSINVALID

#define E_PRIVSINVALID   0x105

Definition at line 69 of file t2embapi.h.

◆ E_PRIVSTATUSINVALID

#define E_PRIVSTATUSINVALID   0x116

Definition at line 86 of file t2embapi.h.

◆ E_READFROMSTREAMFAILED

#define E_READFROMSTREAMFAILED   0x107

Definition at line 71 of file t2embapi.h.

◆ E_RESERVEDPARAMNOTNULL

#define E_RESERVEDPARAMNOTNULL   0x14

Definition at line 56 of file t2embapi.h.

◆ E_RESOURCEFILECREATEFAILED

#define E_RESOURCEFILECREATEFAILED   0x206

Definition at line 102 of file t2embapi.h.

◆ E_SAVETOSTREAMFAILED

#define E_SAVETOSTREAMFAILED   0x108

Definition at line 72 of file t2embapi.h.

◆ E_STATUSINVALID

#define E_STATUSINVALID   0x115

Definition at line 85 of file t2embapi.h.

◆ E_STREAMINVALID

#define E_STREAMINVALID   0x114

Definition at line 84 of file t2embapi.h.

◆ E_SUBSETTINGEXCEPTION

#define E_SUBSETTINGEXCEPTION   0x119

Definition at line 89 of file t2embapi.h.

◆ E_SUBSETTINGFAILED

#define E_SUBSETTINGFAILED   0x106

Definition at line 70 of file t2embapi.h.

◆ E_SUBSTRING_TEST_FAIL

#define E_SUBSTRING_TEST_FAIL   0x11A

Definition at line 90 of file t2embapi.h.

◆ E_T2NOFREEMEMORY

#define E_T2NOFREEMEMORY   0x10A

Definition at line 74 of file t2embapi.h.

◆ E_TTC_INDEX_OUT_OF_RANGE

#define E_TTC_INDEX_OUT_OF_RANGE   0x18

Definition at line 60 of file t2embapi.h.

◆ E_WIN32S_NOTSUPPORTED

#define E_WIN32S_NOTSUPPORTED   0x16

Definition at line 58 of file t2embapi.h.

◆ E_WINDOWSAPI

#define E_WINDOWSAPI   0x204

Definition at line 100 of file t2embapi.h.

◆ EMBED_EDITABLE

#define EMBED_EDITABLE   2

Definition at line 13 of file t2embapi.h.

◆ EMBED_INSTALLABLE

#define EMBED_INSTALLABLE   3

Definition at line 14 of file t2embapi.h.

◆ EMBED_NOEMBEDDING

#define EMBED_NOEMBEDDING   4

Definition at line 15 of file t2embapi.h.

◆ EMBED_PREVIEWPRINT

#define EMBED_PREVIEWPRINT   1

Definition at line 12 of file t2embapi.h.

◆ LICENSE_DEFAULT

#define LICENSE_DEFAULT   0x0

Definition at line 20 of file t2embapi.h.

◆ LICENSE_EDITABLE

#define LICENSE_EDITABLE   0x8

Definition at line 23 of file t2embapi.h.

◆ LICENSE_INSTALLABLE

#define LICENSE_INSTALLABLE   0x0

Definition at line 19 of file t2embapi.h.

◆ LICENSE_NOEMBEDDING

#define LICENSE_NOEMBEDDING   0x2

Definition at line 21 of file t2embapi.h.

◆ LICENSE_PREVIEWPRINT

#define LICENSE_PREVIEWPRINT   0x4

Definition at line 22 of file t2embapi.h.

◆ TTEMBED_EMBEDEUDC

#define TTEMBED_EMBEDEUDC   0x20

Definition at line 31 of file t2embapi.h.

◆ TTEMBED_ENCRYPTDATA

#define TTEMBED_ENCRYPTDATA   0x10000000

Definition at line 34 of file t2embapi.h.

◆ TTEMBED_FAILIFVARIATIONSIMULATED

#define TTEMBED_FAILIFVARIATIONSIMULATED   0x10

Definition at line 30 of file t2embapi.h.

◆ TTEMBED_RAW

#define TTEMBED_RAW   0x0

Definition at line 27 of file t2embapi.h.

◆ TTEMBED_SUBSET

#define TTEMBED_SUBSET   0x1

Definition at line 28 of file t2embapi.h.

◆ TTEMBED_TTCOMPRESSED

#define TTEMBED_TTCOMPRESSED   0x4

Definition at line 29 of file t2embapi.h.

◆ TTEMBED_VALIDATIONTESTS

#define TTEMBED_VALIDATIONTESTS   0x40

Definition at line 32 of file t2embapi.h.

◆ TTEMBED_WEBOBJECT

#define TTEMBED_WEBOBJECT   0x80

Definition at line 33 of file t2embapi.h.

Typedef Documentation

◆ READEMBEDPROC

typedef unsigned long(WINAPIV * READEMBEDPROC) (void *lpvReadStream, void *lpvBuffer, const unsigned long cbBuffer)

Definition at line 121 of file t2embapi.h.

◆ WRITEEMBEDPROC

typedef unsigned long(WINAPIV * WRITEEMBEDPROC) (void *lpvWriteStream, const void *lpvBuffer, const unsigned long cbBuffer)

Definition at line 114 of file t2embapi.h.

Function Documentation

◆ TTCharToUnicode()

LONG WINAPI TTCharToUnicode ( HDC  hDC,
UCHAR pucCharCodes,
ULONG  ulCharCodeSize,
USHORT pusShortCodes,
ULONG  ulShortCodeSize,
ULONG  ulFlags 
)

Definition at line 15 of file stubs.c.

21 {
23  return E_NONE;
24 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTDeleteEmbeddedFont()

LONG WINAPI TTDeleteEmbeddedFont ( HANDLE  hFontReference,
ULONG  ulFlags,
ULONG pulStatus 
)

Definition at line 180 of file main.c.

181 {
182  FIXME("(%p 0x%08x %p) stub\n", hFontReference, flags, status);
183  return E_API_NOTIMPL;
184 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_API_NOTIMPL
Definition: t2embapi.h:41
GLbitfield flags
Definition: glext.h:7161
Definition: ps.c:97

◆ TTEmbedFont()

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 
)

Definition at line 59 of file main.c.

63 {
64  FIXME("(%p 0x%08x 0x%08x %p %p %p %p %p %u %u %p) stub\n", hDC,
65  ulFlags, ulCharSet, pulPrivStatus, pulStatus, lpfnWriteToStream,
66  lpvWriteStream, pusCharCodeSet, usCharCodeCount, usLanguage,
67  pTTEmbedInfo);
68 
69  return E_API_NOTIMPL;
70 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_API_NOTIMPL
Definition: t2embapi.h:41
static HDC hDC
Definition: 3dtext.c:33

◆ TTEmbedFontEx()

LONG WINAPI TTEmbedFontEx ( HDC  hDC,
ULONG  ulFlags,
ULONG  ulCharSet,
ULONG pulPrivStatus,
ULONG pulStatus,
WRITEEMBEDPROC  lpfnWriteToStream,
LPVOID  lpvWriteStream,
ULONG pulCharCodeSet,
USHORT  usCharCodeCount,
USHORT  usLanguage,
TTEMBEDINFO pTTEmbedInfo 
)

Definition at line 80 of file stubs.c.

91 {
93  return E_NONE;
94 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTEmbedFontFromFileA()

LONG WINAPI TTEmbedFontFromFileA ( HDC  hDC,
LPCSTR  szFontFileName,
USHORT  usTTCIndex,
ULONG  ulFlags,
ULONG  ulCharSet,
ULONG pulPrivStatus,
ULONG pulStatus,
WRITEEMBEDPROC  lpfnWriteToStream,
LPVOID  lpvWriteStream,
USHORT pusCharCodeSet,
USHORT  usCharCodeCount,
USHORT  usLanguage,
TTEMBEDINFO pTTEmbedInfo 
)

Definition at line 28 of file stubs.c.

41 {
43  return E_NONE;
44 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTEnableEmbeddingForFacename()

LONG WINAPI TTEnableEmbeddingForFacename ( LPSTR  lpszFacename,
BOOL  bEnable 
)

Definition at line 48 of file stubs.c.

50 {
52  return E_NONE;
53 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTGetEmbeddedFontInfo()

LONG WINAPI TTGetEmbeddedFontInfo ( ULONG  ulFlags,
ULONG pulPrivStatus,
ULONG  ulPrivs,
ULONG pulStatus,
READEMBEDPROC  lpfnReadFromStream,
LPVOID  lpvReadStream,
TTLOADINFO pTTLoadInfo 
)

Definition at line 57 of file stubs.c.

64 {
66  return E_NONE;
67 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTGetEmbeddingType()

LONG WINAPI TTGetEmbeddingType ( HDC  hDC,
ULONG pulPrivStatus 
)

Definition at line 72 of file main.c.

73 {
75  WORD fsType;
76 
77  TRACE("(%p %p)\n", hDC, status);
78 
79  if (!hDC)
80  return E_HDCINVALID;
81 
82  otm.otmSize = sizeof(otm);
83  if (!GetOutlineTextMetricsW(hDC, otm.otmSize, &otm))
84  return E_NOTATRUETYPEFONT;
85 
86  if (!status)
87  return E_PERMISSIONSINVALID;
88 
89  otm.otmfsType = (fsType = otm.otmfsType) & 0xf;
90  if (otm.otmfsType == LICENSE_INSTALLABLE)
92  else if (otm.otmfsType & LICENSE_EDITABLE)
94  else if (otm.otmfsType & LICENSE_PREVIEWPRINT)
96  else if (otm.otmfsType & LICENSE_NOEMBEDDING)
98  else
99  {
100  WARN("unrecognized flags, %#x\n", otm.otmfsType);
102  }
103 
104  TRACE("fsType 0x%04x, status %u\n", fsType, *status);
105  return E_NONE;
106 }
#define WARN(fmt,...)
Definition: debug.h:112
#define E_NOTATRUETYPEFONT
Definition: t2embapi.h:50
#define EMBED_INSTALLABLE
Definition: t2embapi.h:14
#define EMBED_PREVIEWPRINT
Definition: t2embapi.h:12
#define E_HDCINVALID
Definition: t2embapi.h:47
#define TRACE(s)
Definition: solgame.cpp:4
unsigned short WORD
Definition: ntddk_ex.h:93
#define LICENSE_PREVIEWPRINT
Definition: t2embapi.h:22
#define E_NONE
Definition: t2embapi.h:38
static HDC hDC
Definition: 3dtext.c:33
#define LICENSE_EDITABLE
Definition: t2embapi.h:23
#define EMBED_NOEMBEDDING
Definition: t2embapi.h:15
#define LICENSE_NOEMBEDDING
Definition: t2embapi.h:21
UINT WINAPI GetOutlineTextMetricsW(_In_ HDC hdc, _In_ UINT cjCopy, _Out_writes_bytes_opt_(cjCopy) LPOUTLINETEXTMETRICW potm)
#define E_PERMISSIONSINVALID
Definition: t2embapi.h:87
#define LICENSE_INSTALLABLE
Definition: t2embapi.h:19
#define EMBED_EDITABLE
Definition: t2embapi.h:13
Definition: ps.c:97

◆ TTGetNewFontName()

LONG WINAPI TTGetNewFontName ( HANDLE phFontReference,
LPWSTR  szWinFamilyName,
long  cchMaxWinName,
LPSTR  szMacFamilyName,
long  cchMaxMacName 
)

Definition at line 107 of file stubs.c.

112 {
114  return E_NONE;
115 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTIsEmbeddingEnabled()

LONG WINAPI TTIsEmbeddingEnabled ( HDC  hDC,
BOOL pbEnabled 
)

Definition at line 155 of file main.c.

156 {
157  OUTLINETEXTMETRICA *otm;
158  LONG ret;
159  UINT len;
160 
161  TRACE("(%p %p)\n", hDC, enabled);
162 
163  if (!hDC)
164  return E_HDCINVALID;
165 
167  if (!len)
169 
170  otm = HeapAlloc(GetProcessHeap(), 0, len);
171  if (!otm)
172  return E_NOFREEMEMORY;
173 
176  HeapFree(GetProcessHeap(), 0, otm);
177  return ret;
178 }
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
uint32_t ULONG_PTR
Definition: typedefs.h:65
long LONG
Definition: pedump.c:60
#define E_HDCINVALID
Definition: t2embapi.h:47
const char * LPCSTR
Definition: xmlstorage.h:183
#define TRACE(s)
Definition: solgame.cpp:4
#define E_ERRORACCESSINGFACENAME
Definition: t2embapi.h:52
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define E_NOFREEMEMORY
Definition: t2embapi.h:48
int ret
UINT WINAPI GetOutlineTextMetricsA(_In_ HDC hdc, _In_ UINT cjCopy, _Out_writes_bytes_opt_(cjCopy) LPOUTLINETEXTMETRICA potm)
LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled)
Definition: main.c:108
GLenum GLsizei len
Definition: glext.h:6722
static HDC hDC
Definition: 3dtext.c:33
unsigned int UINT
Definition: ndis.h:50
#define NULL
Definition: types.h:112
#define HeapFree(x, y, z)
Definition: compat.h:594

◆ TTIsEmbeddingEnabledForFacename()

LONG WINAPI TTIsEmbeddingEnabledForFacename ( LPCSTR  lpszFacename,
BOOL pbEnabled 
)

Definition at line 108 of file main.c.

109 {
110  static const WCHAR exclusionlistW[] = {'S','o','f','t','w','a','r','e','\\','M','i','c','r','o','s','o','f','t','\\',
111  'S','h','a','r','e','d',' ','T','o','o','l','s','\\','t','2','e','m','b','e','d',0};
112  DWORD index;
113  HKEY hkey;
114  LONG ret;
115 
116  TRACE("(%s %p)\n", debugstr_a(facename), enabled);
117 
118  if (!facename)
119  return E_FACENAMEINVALID;
120 
121  if (!enabled)
122  return E_PBENABLEDINVALID;
123 
124  *enabled = TRUE;
125  if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, exclusionlistW, 0, GENERIC_READ, &hkey))
126  goto out;
127 
128  *enabled = TRUE;
129  ret = ERROR_SUCCESS;
130  index = 0;
131  while (ret != ERROR_NO_MORE_ITEMS)
132  {
133  DWORD name_len, value_len, value, type;
135 
136  name_len = ARRAY_SIZE(name);
137  value_len = sizeof(value);
138  ret = RegEnumValueA(hkey, index++, name, &name_len, NULL, &type, (BYTE*)&value, &value_len);
139  if (ret || type != REG_DWORD)
140  continue;
141 
142  if (!lstrcmpiA(name, facename))
143  {
144  *enabled = !!value;
145  break;
146  }
147  }
148  RegCloseKey(hkey);
149 
150 out:
151  TRACE("embedding %s for %s\n", *enabled ? "enabled" : "disabled", debugstr_a(facename));
152  return E_NONE;
153 }
Definition: pdh_main.c:93
#define LF_FACESIZE
Definition: dimm.idl:39
#define ERROR_SUCCESS
Definition: deptool.c:10
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
Definition: lstring.c:42
#define ERROR_NO_MORE_ITEMS
Definition: compat.h:105
#define TRUE
Definition: types.h:120
char CHAR
Definition: xmlstorage.h:175
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
LONG WINAPI RegCloseKey(HKEY hKey)
Definition: reg.c:423
long LONG
Definition: pedump.c:60
#define E_FACENAMEINVALID
Definition: t2embapi.h:83
GLuint index
Definition: glext.h:6031
#define TRACE(s)
Definition: solgame.cpp:4
LONG WINAPI RegEnumValueA(_In_ HKEY hKey, _In_ DWORD dwIndex, _Out_ LPSTR lpName, _Inout_ LPDWORD lpcbName, _Reserved_ LPDWORD lpdwReserved, _Out_opt_ LPDWORD lpdwType, _Out_opt_ LPBYTE lpData, _Inout_opt_ LPDWORD lpcbData)
Definition: reg.c:2691
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define debugstr_a
Definition: kernel32.h:31
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
#define E_NONE
Definition: t2embapi.h:38
int ret
#define index(s, c)
Definition: various.h:29
GLsizei const GLfloat * value
Definition: glext.h:6069
#define GENERIC_READ
Definition: compat.h:135
unsigned char BYTE
Definition: xxhash.c:193
int type
Definition: main.c:85
#define ARRAY_SIZE(a)
Definition: main.h:24
#define NULL
Definition: types.h:112
Definition: name.c:38
#define E_PBENABLEDINVALID
Definition: t2embapi.h:88
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
Definition: reg.c:3366
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define REG_DWORD
Definition: sdbapi.c:596
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12

Referenced by TTIsEmbeddingEnabled().

◆ TTLoadEmbeddedFont()

LONG WINAPI TTLoadEmbeddedFont ( HANDLE phFontReference,
ULONG  ulFlags,
ULONG pulPrivStatus,
ULONG  ulPrivs,
ULONG pulStatus,
READEMBEDPROC  lpfnReadFromStream,
LPVOID  lpvReadStream,
LPWSTR  szWinFamilyName,
LPSTR  szMacFamilyName,
TTLOADINFO pTTLoadInfo 
)

Definition at line 45 of file main.c.

50 {
51  FIXME("(%p 0x%08x %p 0x%08x %p %p %p %s %s %p) stub\n", phFontReference,
52  ulFlags, pulPrivStatus, ulPrivs, pulStatus, lpfnReadFromStream,
53  lpvReadStream, debugstr_w(szWinFamilyName), szMacFamilyName,
54  pTTLoadInfo);
55 
56  return E_API_NOTIMPL;
57 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_API_NOTIMPL
Definition: t2embapi.h:41

◆ TTRunValidationTests()

LONG WINAPI TTRunValidationTests ( HDC  hDC,
TTVALIDATIONTESTPARAMS pTestParam 
)

Definition at line 71 of file stubs.c.

73 {
75  return E_NONE;
76 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38

◆ TTRunValidationTestsEx()

LONG WINAPI TTRunValidationTestsEx ( HDC  hDC,
TTVALIDATIONTESTPARAMSEX pTestParam 
)

Definition at line 98 of file stubs.c.

100 {
102  return E_NONE;
103 }
#define UNIMPLEMENTED
Definition: stubs.c:20
#define E_NONE
Definition: t2embapi.h:38