How to display fonts correctly using Foxit PDF SDK?
by Conor Smith | April 5, 2017
To display the fonts correctly, you must use the FSCRT_Library_AddFontFile or use FSCRT_Library_SetFontMapperHandler. Here is how to use FSCRT_Library_SetFontMapperHandler in C++. declare the following structure: static FSCRT_FONTMAPPERHANDLER ExternalFontMapper; static string FallbackFontPath; static FS_RESULT MapExternalFont(FS_LPVOID clientData, FS_LPCSTR fontName, FS_DWORD fontStyles, FS_INT32 weight, FS_INT32 charset, FSCRT_FILE *fontFile, FS_INT32 *faceIndex){ //This call back will trigger when an external […]
Keep reading