Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  


Creates an alternate font list, that can be filled with data by DynaPDF.SetAltFonts().

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 12.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.CreateAltFontList" )




Returns number or error.


Creates an alternate font list, that can be filled with data by DynaPDF.SetAltFonts().
It is possible to create an arbitrary number of alternate font lists. Multiple lists can be created because different fonts and languages require different fallback fonts. For example, one could create one list for proportional fonts and another one for fixed pitch fonts, or different lists for different languages.
Each list can be activated or deactivated with DynaPDF.ActivateAltFontList arbitrary often. Changing the active alternate font list is very fast and causes no overhead.
Once a font list was created it can be filled with data with DynaPDF.SetAltFonts. A font list that is no longer needed can be deleted with DynaPDF.DeleteAltFontList.
Please note that alternate font lists are used only, if complex text layout was enabled. This can be done by setting the flag ComplexText with DynaPDF.SetGStateFlags.

If the function succeeds the return value is the handle of the font list, a value greater or equal zero. If the function fails the return value is an error message.

See also

Release notes

Blog Entries

Created 23th December 2021, last changed 30th December 2021

DynaPDF.ConvertStyledText - DynaPDF.CreateAxialShading

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat