Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFontPanelMBS class.

NSFontPanelMBS.convertAttributes(old as dictionary) as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Converts attributes in response to an object initiating an attribute change, typically the Font panel.

Call this function only in the changeAttributes event.

NSFontPanelMBS.convertFont(oldFont as NSFontMBS) as NSFontMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Converts the given font according to the object that initiated a font change, typically the Font panel.

Call this function only in the ChangeFont event.

NSFontPanelMBS.sharedFontPanel as NSFontPanelMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the single NSFontPanel instance for the application, creating it if necessary.
Example
NSFontPanelMBS.sharedFontPanel.Show

Some examples using this method:

NSFontPanelMBS.sharedFontPanelExists as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacCocoa Plugin 9.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns true if the shared Font panel has been created, false if it hasn't.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...