Structure for font mapping. More...
#include <fs_base_r.h>
Public Attributes | |
FS_LPVOID | clientData |
User-defined data. More... | |
FS_RESULT(* | MapFont )(FS_LPVOID clientData, FS_LPCSTR fontName, FS_DWORD fontStyles, FS_INT32 weight, FS_INT32 charset, FSCRT_FILE *fontFile, FS_INT32 *faceIndex) |
Find a font for a particular PDF font. More... | |
Structure for font mapping.
FS_LPVOID FSCRT_FONTMAPPERHANDLER::clientData |
User-defined data.
FS_RESULT(* FSCRT_FONTMAPPERHANDLER::MapFont) (FS_LPVOID clientData, FS_LPCSTR fontName, FS_DWORD fontStyles, FS_INT32 weight, FS_INT32 charset, FSCRT_FILE *fontFile, FS_INT32 *faceIndex) |
Find a font for a particular PDF font.
[in] | clientData | Pointer to user-supplied data. |
[in] | fontName | Pointer to a zero-terminated string for the given font name. |
[in] | fontStyles | Font Flags. Please refer to macro definitions of FSCRT_FONTSTYLE_XXX and this can be one or a combination of these macros. |
[in] | weight | Weight of a font. Range from 100 to 900. 400 is normal, 700 is bold. |
[in] | charset | Charset ID. Please refer to macro definitions of FSCRT_CHARSET_XXX and this should be one of these macros. |
[out] | fontFile | Pointer to a FSCRT_FILE handle that receives a file object. |
[out] | faceIndex | Pointer to a FS_INT32 object that receives a zero-based index value for a font face, if the mapped font file is a "collection" (meaning a number of faces are stored in the same file). If the font file is not a collection, the index value shall be zero. |