DynaPDF.ChangeFontSize
----------------------

This function changes the font size of the current font.

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

MBS( "DynaPDF.ChangeFontSize"; PDF; Size ) 

**MBS**( **"DynaPDF.ChangeFontSize"** /\* This function changes the font size of the current font. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Size**) /\* The new font size. e.g. 10 \*/ 

### Parameters

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

### Result

Returns OK or error message.

### Description

This function changes the font size of the current font.   
The font size must be greater zero.  
See also [ChangeFontSize](https://www.monkeybreadsoftware.com/DynaPDF-Manual/ChangeFontSize.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.ChangeAnnotName](DynaPDFChangeAnnotName.md)
- [DynaPDF.ChangeFont](DynaPDFChangeFont.md)
- [DynaPDF.ChangeFontEx](DynaPDFChangeFontEx.md)
- [DynaPDF.ChangeFontStyle](DynaPDFChangeFontStyle.md)
- [DynaPDF.ChangeFontStyleEx](DynaPDFChangeFontStyleEx.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

Created 18th August 2014 , last changed 27th May 2017

  
[DynaPDF.ChangeFontEx](DynaPDFChangeFontEx.md) - [DynaPDF.ChangeFontStyle](DynaPDFChangeFontStyle.md)

[HTML Version](DynaPDFChangeFontSize.shtml)