SyntaxColoring.SetFontSize
--------------------------

Sets current font size for Script Workspace.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [10.1](newinversion101.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.SetFontSize"; FontSize ) 

**MBS**( **"SyntaxColoring.SetFontSize";** /\* Sets current font size for Script Workspace. \*/  
**$FontSize**) /\* The new font size.e.g. 12 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FontSize | The new font size. | 12 |

### Result

Returns OK or error.

### Description

Sets current font size for Script Workspace.  
Size is zero for default. Range should be 11 to 18.  
  
Works for FileMaker 16 and newer.  
You may need to restart FileMaker to see the change!  
### See also

- [SyntaxColoring.GetFontName](SyntaxColoringGetFontName.md)
- [SyntaxColoring.GetFontSize](SyntaxColoringGetFontSize.md)
- [SyntaxColoring.SetFontName](SyntaxColoringSetFontName.md)
- [SyntaxColoring.SetMinCalcFontSize](SyntaxColoringSetMinCalcFontSize.md)

### Release notes

- **Version 13.2**
    - Fixed [SyntaxColoring.SetFontSize](https://www.mbsplugins.eu/SyntaxColoringSetFontSize.shtml) to allow passing value zero to disable font size change.
- **Version 10.1**
    - Added [SyntaxColoring.GetFontSize](https://www.mbsplugins.eu/SyntaxColoringGetFontSize.shtml) and [SyntaxColoring.SetFontSize](https://www.mbsplugins.eu/SyntaxColoringSetFontSize.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 13.2pr1](https://www.mbsplugins.de/archive/2023-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr1](https://www.mbsplugins.de/archive/2020-01-30/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.5pr9](https://www.mbsplugins.de/archive/2013-11-29/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 28th January 2020 , last changed 16th November 2023

  
[SyntaxColoring.SetFontName](SyntaxColoringSetFontName.md) - [SyntaxColoring.SetFormatAddSpaceBeforeSemicolon](SyntaxColoringSetFormatAddSpaceBeforeSemicolon.md)

[HTML Version](SyntaxColoringSetFontSize.shtml)