Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets the font name.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SyntaxColoring | 10.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
FontName | The new font name to use. Pass empty text to disable feature. |
"JetBrains Mono" |
Returns OK or error.
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" ) ]
This function is free to use.
Created 25th January 2020, last changed 16th November 2023
SyntaxColoring.SetExportTooltipsEnabled - SyntaxColoring.SetFontSize