Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SyntaxColoring.SetFontName

Sets the font name.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 10.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.SetFontName"; FontName )   More

Parameters

Parameter Description Example
FontName The new font name to use.
Pass empty text to disable feature.
"JetBrains Mono"

Result

Returns OK or error.

Description

Sets the font name.
Our plugin replaces the font used in Script Workspace and calculation dialog with the given font.
After setting font you may need to restart FileMaker before Script Workspace applies the new font.

Works for FileMaker 16 and newer.
You may need to restart FileMaker to see the change!

The default font seems to be Menlo-Regular 11.00 for FileMaker.

Examples

Pick SF Pro as font:

Set Variable [$r; Value: MBS( "SyntaxColoring.SetFontName"; "SF Pro" ) ]

Clear the font:

Set Variable [$r; Value: MBS( "SyntaxColoring.SetFontName"; "" ) ]

Set an italic font:

Set Variable [$r; Value: MBS( "SyntaxColoring.SetFontName"; "AvenirNext-Italic" ) ]

See also

Release notes

Blog Entries

This function is free to use.

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


SyntaxColoring.SetExportTooltipsEnabled - SyntaxColoring.SetFontSize