Instance Method

setPanelFont(_:isMultiple:)

Sets the selected font in the receiver to the specified font.

Declaration

func setPanelFont(_ fontObj: NSFont, isMultiple flag: Bool)

Parameters

aFont

The font to be selected.

flag

If false, selects the specified font; otherwise selects no font and displays a message in the preview area indicating that multiple fonts are selected.

Discussion

You normally don’t use this method directly; instead, you send setSelectedFont(_:isMultiple:) to the shared NSFontManager, which in turn invokes this method.