Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Sets the font name to use.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menu | 5.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
(old name: MenuItem.ApplyFont)
Parameter | Description | Example | Flags |
---|---|---|---|
item | The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. | $item | |
FontName | The font name to use. | "Arial" | |
FontSize | The font size to use. Use 0 for default system font size. | 9 | Optional |
Returns OK or error.
Create a menu entry with specific font:
Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "With Comic Sans Font")]
Set Variable [$r; Value:MBS("MenuItem.SetFontName"; $item; "Comic Sans MS"; 13)]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]
Created 11st May 2015, last changed 1st October 2016
MenuItem.SetFontColor - MenuItem.SetFontSize
Feedback: Report problem or ask question.