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: 11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4    Statistic    FMM    Blog  

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

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


DynaPDF.ConvertStyledText - DynaPDF.CreateAxialShading

Feedback: Report problem or ask question.


Start Chat