TTGetEmbeddedFontInfo function (t2embapi.h)
Retrieves information about an embedded font, such as embedding permissions. TTGetEmbeddedFontInfo performs the same task as TTLoadEmbeddedFont but does not allocate internal data structures for the embedded font.
Syntax
LONG TTGetEmbeddedFontInfo(
[in] ULONG ulFlags,
[out] ULONG *pulPrivStatus,
[in] ULONG ulPrivs,
[out] ULONG *pulStatus,
READEMBEDPROC lpfnReadFromStream,
[in] LPVOID lpvReadStream,
[in] TTLOADINFO *pTTLoadInfo
);
Parameters
[in] ulFlags
Flags specifying the request. This flag can have zero or more of the following values.
[out] pulPrivStatus
On completion, indicates embedding privileges of the font. A list of possible values follows:
Value | Meaning |
---|---|
|
Preview and Print Embedding. |
|
Editable Embedding. |
|
Installable Embedding. |
|
Restricted License Embedding. |
[in] ulPrivs
Flag indicating a further restriction of embedding privileges, imposed by the client. See TTLoadEmbeddedFont for additional information.
This flag must have one of the following values.
[out] pulStatus
Pointer to a bitfield containing status information, and is filled upon completion of this function. The status can be zero or the following value:
Value | Meaning |
---|---|
|
The font loaded is a subset of the original font. |
lpfnReadFromStream
[callback] Pointer to the client-defined callback function that reads the font structure from the document stream.
[in] lpvReadStream
Currently undefined. Reserved for a pointer to the stream (font structure).
[in] pTTLoadInfo
Pointer to a TTLOADINFO structure containing the URL from which the embedded font object has been obtained.
Return value
If successful, returns E_NONE.
The location referenced by *pulPrivStatus identifies embedding privileges of the font. The location referenced by *pulStatus identifies whether a subset of the font is embedded.
Otherwise, returns an error code described in Embedding-Function Error Messages.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | t2embapi.h |
Library | T2embed.lib |
DLL | T2embed.dll |