Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.CreateAltFontList

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"; PDF )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf

Result

Returns number or error.

Description

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 CreateAltFontList function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 23th December 2021, last changed 17th July 2022


DynaPDF.ConvertStyledText - DynaPDF.CreateAnnotAP