DynaPDF.SetFieldFontEx
----------------------

Sets or replaces the font of a field.

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

MBS( "DynaPDF.SetFieldFontEx"; PDF; Field; FontHandle; FontSize ) 

**MBS**( **"DynaPDF.SetFieldFontEx";** /\* Sets or replaces the font of a field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**; /\* The field index or field name.e.g. "FirstName" \*/   
**$FontHandle**; /\* The handle of the font returned from [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md).e.g. $Font \*/   
**$FontSize**) /\* The desired font size.e.g. 12 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |
| FontHandle | The handle of the font returned from [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md). | $Font |
| FontSize | The desired font size. | 12 |

### Result

Returns OK or error.

### Description

Sets or replaces the font of a field.   
The function requires a font handle that was returned by [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md).  
  
See also [SetFieldFontEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetFieldFontEx.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldBBox](DynaPDFSetFieldBBox.md)
- [DynaPDF.SetFieldDate](DynaPDFSetFieldDate.md)
- [DynaPDF.SetFieldFlags](DynaPDFSetFieldFlags.md)
- [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md)
- [DynaPDF.SetFieldFontSize](DynaPDFSetFieldFontSize.md)
- [DynaPDF.SetFieldIndex](DynaPDFSetFieldIndex.md)
- [DynaPDF.SetFieldToolTip](DynaPDFSetFieldToolTip.md)
- [DynaPDF.SetFontEx](DynaPDFSetFontEx.md)
- [DynaPDF.SetUseStdFonts](DynaPDFSetUseStdFonts.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.1pr2](https://www.mbsplugins.de/archive/2015-03-23/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th March 2015 , last changed 19th March 2015

  
[DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md) - [DynaPDF.SetFieldFontSize](DynaPDFSetFieldFontSize.md)

[HTML Version](DynaPDFSetFieldFontEx.shtml)