DynaPDF.GetUseSystemFonts
-------------------------

Queries whether system fonts are used.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetUseSystemFonts"; PDF ) 

**MBS**( **"DynaPDF.GetUseSystemFonts";** /\* Queries whether system fonts are used. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### 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](DynaPDFAddFontSearchPath.md).  
Because Linux and UNIX operating system support no default font directory the property is ignored.  
  
See also [DynaPDF.SetUseSystemFonts](DynaPDFSetUseSystemFonts.md).  
See also [GetUseSystemFonts](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetUseSystemFonts.shtml) function in DynaPDF manual.

### Examples

Queries system fonts usage:

 MBS ( "DynaPDF.GetUseSystemFonts"; $PDF )  
### See also

- [DynaPDF.AddFontSearchPath](DynaPDFAddFontSearchPath.md)
- [DynaPDF.GetUseStdFonts](DynaPDFGetUseStdFonts.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetUseStdFonts](DynaPDFSetUseStdFonts.md)
- [DynaPDF.SetUseSystemFonts](DynaPDFSetUseSystemFonts.md)

This function checks for a license.

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

  
[DynaPDF.GetUseStdFonts](DynaPDFGetUseStdFonts.md) - [DynaPDF.GetUseTransparency](DynaPDFGetUseTransparency.md)

[HTML Version](DynaPDFGetUseSystemFonts.shtml)