XL.Font.SetSize
---------------

Sets the size of the font in points.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Font.SetSize"; Book; Font; Value ) 

**MBS**( **"XL.Font.SetSize"** /\* Sets the size of the font in points. \*/  
**$Book**; /\* The reference number for the workbook. e.g. $ref \*/   
**$Font**; /\* The index of the font in the book to target. e.g. 0 \*/   
**$Value**) /\* The new font size. e.g. 12 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Book | The reference number for the workbook. | $ref |
| Font | The index of the font in the book to target. | 0 |
| Value | The new font size. | 12 |

### Result

Returns OK or error.

### Description

Sets the size of the font in points.  
### Examples

Create a font:

 Set Variable \[$textFont ; Value:MBS ( "[XL.Book.AddFont](XLBookAddFont.md)"; $book )\]  
Set Variable \[$r ; Value:MBS ( "XL.Font.SetSize"; $book ; $textfont ; 8)\]  
Set Variable \[$r ; Value:MBS ( "[XL.Font.SetName](XLFontSetName.md)"; $book ; $textfont ; "Century Gothic")\]  
### See also

- [XL.Book.AddFont](XLBookAddFont.md)
- [XL.Book.AddFormat](XLBookAddFormat.md)
- [XL.Font.GetName](XLFontGetName.md)
- [XL.Font.GetSize](XLFontGetSize.md)
- [XL.Font.SetName](XLFontSetName.md)
- [XL.Font.SetScript](XLFontSetScript.md)
- [XL.Format.SetAlignH](XLFormatSetAlignH.md)
- [XL.Format.SetAlignV](XLFormatSetAlignV.md)
- [XL.Format.SetFont](XLFormatSetFont.md)
- [XL.Sheet.CellWriteText](XLSheetCellWriteText.md)

### Example Databases

- [XL/Writing data](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/Writing%20data.shtml#5ScriptAnchor_)

### Blog Entries

- [MBS Plugin Advent calendar: 13 - XL](https://www.mbsplugins.de/archive/2023-12-13/MBS_Plugin_Advent_calendar_13_/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2022, Seite 22](https://filemaker-magazin.de/neuigkeit/4196-Appetithappen-FMM_202205)

This function checks for a license.

Created 18th August 2014 , last changed 5th May 2016

  
[XL.Font.SetScript](XLFontSetScript.md) - [XL.Font.SetStrikeOut](XLFontSetStrikeOut.md)

[HTML Version](XLFontSetSize.shtml)