Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetUseSystemFonts
The property specifies whether the system fonts should be automatically loaded.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.SetUseSystemFonts"; PDF; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Value | The new setting, can be 0 or 1. | 1 |
Result
Returns OK or error.
Description
The property specifies whether the system fonts should be automatically loaded.On Windows all fonts in the Windows/Fonts directory will be loaded as well as shared fonts listed in the Registry. On macOS the following font paths will be added to the list of font search paths:
/System/Library/Fonts
/Library/Fonts
~/Library/Fonts
Additional font paths can be added with DynaPDF.AddFontSearchPath. Default value = 1 (true)
The fonts are loaded when DynaPDF.SetFont is called the first time. The property is ignored on Linux or UNIX.
Please note that the internal font list is not automatically updated when the system's font pool changes. Windows operating systems send a WM_FONTCHANGE message if the font pool was modified. In this case, the application should call DynaPDF.ClearHostFonts before calling SetFont() the next time so that the list of available system fonts can be updated.
On macOS there is no notification when the font database changes. macOS applications need to use functions of the font manager to determine whether font database has been modified.
See also DynaPDF.GetUseSystemFonts.
See also SetUseSystemFonts function in DynaPDF manual.
Examples
Enable system fonts
MBS( "DynaPDF.SetUseSystemFonts"; $PDF; 1 )
See also
- DynaPDF.ActivateAltFontList
- DynaPDF.AddFontSearchPath
- DynaPDF.Clear
- DynaPDF.GetUseStdFonts
- DynaPDF.GetUseSystemFonts
- DynaPDF.New
- DynaPDF.SetFont
- DynaPDF.SetUseStdFonts
This function checks for a license.
Created 18th August 2014, last changed 10th August 2020