Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

DynaPDF.SetUseSystemFonts

The property specifies whether the system fonts should be automatically loaded.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.2 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetUseSystemFonts"; PDF; Value )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
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 Mac OS X 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 Mac OS X there is no notification when the font database changes. Mac OS X 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.SetUseStdFonts   -   DynaPDF.SetUseTransparency

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins