DynaPDF.SetUseStdFonts
----------------------

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

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

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

**MBS**( **"DynaPDF.SetUseStdFonts";** /\* The function can be used to disable the 14 standard fonts temporarily. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Value**) /\* the new setting. Can be 0 to turn off or 1 to turn on.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $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](DynaPDFSetFont.md) 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](DynaPDFGetUseStdFonts.md).  
See also [SetUseStdFonts](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetUseStdFonts.shtml) function in DynaPDF manual.

### Examples

Enable standard fonts:

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

- [DynaPDF.GetUseStdFonts](DynaPDFGetUseStdFonts.md)
- [DynaPDF.GetUseSystemFonts](DynaPDFGetUseSystemFonts.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetAltFonts](DynaPDFSetAltFonts.md)
- [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md)
- [DynaPDF.SetFieldFontEx](DynaPDFSetFieldFontEx.md)
- [DynaPDF.SetFont](DynaPDFSetFont.md)
- [DynaPDF.SetUseSystemFonts](DynaPDFSetUseSystemFonts.md)

This function checks for a license.

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

  
[DynaPDF.SetUseGlobalImpFiles](DynaPDFSetUseGlobalImpFiles.md) - [DynaPDF.SetUseSystemFonts](DynaPDFSetUseSystemFonts.md)

[HTML Version](DynaPDFSetUseStdFonts.shtml)