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

DynaPDF.SetUseStdFonts

The function can be used to disable the 14 standard fonts temporarily.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetUseStdFonts"; PDF; Value )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Value the new setting. Can be 0 to turn off or 1 to turn on. 1

Result

Return OK or error.

Description

The function can be used to disable the 14 standard fonts temporarily.
PDF viewer applications support 14 standard fonts, these fonts are not embedded by default, also if the parameter Embed of the function DynaPDF.SetFont is true.
If certain standard fonts are available on the system, then they have typically a higher search priority but it is still possible to select a standard font. This can occur, for example, when the font weight of the system font does not exactly match the requested weight. If a standard font represents a better match, then this font would be selected.
To avoid unwanted font selections it is possible to disable the standard fonts from font selection. The value can be changed whenever necessary.
Default value = 1 (on)

See also DynaPDF.GetUseStdFonts.

See also SetUseStdFonts function in DynaPDF manual.

Examples

Enable standard fonts:

MBS( "DynaPDF.SetUseStdFonts"; $PDF; 1 )

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


DynaPDF.SetUseGlobalImpFiles - DynaPDF.SetUseSystemFonts