Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 662

Previous Page 661   Index   Next Page 663

Function Reference
Page 662 of 750
Every font type can be disabled if necessary with the value fbtDisabled. The array Order can be set to
NULL to reset the search order to the default order as described above. If Order is set, the array must
contain four elements and each value in the array must be properly initialized.
Example (C/C++):
TFontBaseType so[4] = {fbtStdFont, fbtTrueType, fbtOpenType, fbtType1};
// Change the search order
pdfSetFontSearchOrder(pdf, so);
// Reset the font search order to the default order
pdfSetFontSearchOrder(pdf, NULL);
Compatibility Note:
The default font search order in DynaPDF 2.0 was:
Standard PDF Fonts
TrueType or Type1
DynaPDF 2.0 selected simply the first font that matched the font name while the 14 PDF Standard
fonts had the highest search priority. Applications which use the standard fonts can change the
search order so that the standard fonts become a higher search priority than system fonts.
void pdfSetFontSearchOrderEx(
const PPDF* IPDF, // Instance pointer
TFontBaseType S1, // First search format
TFontBaseType S2, // Second search format
TFontBaseType S3, // Third search format
TFontBaseType S4) // Fourth search format
typedef enum
fbtTrueType, // TrueType, TrueType Collections
// Type1 font
fbtOpenType, // OpenType font with Postscript outlines
// PDF Standard font
// Can be used to disable a font format
The function changes the font search order in the same way as SetFontSearchOrder() but it does not
use an array to set the search order to improve the compatibility to programming languages with
limited array support.

Previous topic: SetFontSearchOrder

Next topic: Font weights: