Type Method

setFontPanelFactory(_:)

Sets the class used to create the Font panel to the given class.

Declaration

class func setFontPanelFactory(_ factoryId: AnyClass?)

Parameters

factoryId

The new font panel factory class, which should be a subclass of NSFontPanel.

Discussion

Invoke this method before accessing the Font panel in any way, such as in the application delegate’s applicationWillFinishLaunching(_:) method.

See Also

Changing the Default Font Conversion Classes

class func setFontManagerFactory(AnyClass?)

Sets the class object used to create the font manager to the given class.