SetAutomaticFontFallback
Text, fonts
Description
Enables or disables the built-in font fallback candidates used for missing shaped clusters
Syntax
Delphi
Function TPDFlib.SetAutomaticFontFallback(Enable: Integer): Integer;ActiveX
Function PDFlib::SetAutomaticFontFallback(Enable As Long) As LongDLL
int DLSetAutomaticFontFallback(int InstanceID, int Enable);Parameters
| Enable | 0 disables the built-in candidates; any other value enables them |
|---|
Return values
Returns the previous state as 0 or 1
Remarks
Automatic fallback is enabled by default and selects installed faces suitable for CJK, symbols, emoji, mathematics, and complex scripts
Faces added with AddFontFallback remain active when the built-in candidates are disabled
Where no platform engine opens installed faces by name, the candidates are the other embedded fonts already added to the document, tried in the order they were added
Only clusters missing from the primary face use fallback, and unresolved clusters continue through the configured missing-glyph policy
See also
GetAutomaticFontFallback, ClearFontFallbacks, SetMissingGlyphPolicy