Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetUseSystemFonts
Queries whether system fonts are used.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.GetUseSystemFonts"; PDF ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Result
Returns value (0 or 1) or error.
Description
Queries whether system fonts are used.The property specifies whether the default font directory of the operating system should be added to the list of font search paths. On Windows this is the %Windows%/Fonts directory plus additional fonts which can be named in the Registry.
On macOS the following font directories will be added to the list of font search paths (in this order):
~/Library/Fonts/
/Library/Fonts/
/System/Library/Fonts/
System fonts are loaded on demand, e.g. when a function tries to load a font. To improve processing speed the internal font cache is hold in memory until the PDF instance will be deleted. Additional font search paths can be added with DynaPDF.AddFontSearchPath.
Because Linux and UNIX operating system support no default font directory the property is ignored.
See also DynaPDF.SetUseSystemFonts.
See also GetUseSystemFonts function in DynaPDF manual.
Examples
Queries system fonts usage:
MBS( "DynaPDF.GetUseSystemFonts"; $PDF )
See also
- DynaPDF.AddFontSearchPath
- DynaPDF.GetUseStdFonts
- DynaPDF.New
- DynaPDF.SetUseStdFonts
- DynaPDF.SetUseSystemFonts
This function checks for a license.
Created 18th August 2014, last changed 10th August 2020
