# NSFontManager

FredKiefer@gmx.de
Generated at 2026-02-17 21:02:56 +0000

Manages system and user fonts

1996 Free Software Foundation, Inc.
Software documentation for the NSFontManager class
AppKit/NSFontManager.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
setFontManagerFactory:
aClass

Sets the class used to create the NSFontManager to aClass. By default it is a NSFontManager class. You can change this behavour by implementing your own class (a subclass of NSFontManager)

This class is init into +sharedFontManager

See Also: +sharedFontManager

setFontPanelFactory:
aClass

Sets the class used to create a NSFontPanel. If you want to use a custom class it should be NSFontPanel subclass

See Also: -fontPanel:

sharedFontManager

Creates (if needed) and returns the NSFontManager shared instance. This method init the font manager class defined in +setFontManagerFactory: (it is usally a NSFontManager class)

action

Returns the action sents by the NSFontManager.

See Also: -setAction:

addCollection:
name
options:
options
Description forthcoming.
addFontDescriptors:
descriptors
toCollection:
collection
Description forthcoming.
addFontTrait:
sender
Description forthcoming.
availableFontFamilies
Description forthcoming.
availableFontNamesMatchingFontDescriptor:
descriptor
Description forthcoming.
availableFontNamesWithTraits:
fontTraitMask
Description forthcoming.
availableFonts

Returns an array of available fonts.

availableMembersOfFontFamily:
family
Description forthcoming.
collectionNames
Description forthcoming.
convertAttributes:
attributes
Description forthcoming.
convertFont:
fontObject

Converts the NSFont fontObject according to user changes in the Font panel or the font menu

See Also: -addFontTrait: -removeFontTrait: -modifyFont: -modifyFontViaPanel: -convertFont:toHaveTrait: -convertFont:toNotHaveTrait: -convertFont:toSize: -convertFont:toFamily: -convertWeight:ofFont:

convertFont:
fontObject
toFace:
typeface
Description forthcoming.
convertFont:
fontObject
toFamily:
family
Description forthcoming.
convertFont:
fontObject
toHaveTrait:
trait
Description forthcoming.
convertFont:
fontObject
toNotHaveTrait:
trait
Description forthcoming.
convertFont:
fontObject
toSize:
size
Description forthcoming.
convertWeight:
upFlag
ofFont:
fontObject
Description forthcoming.
delegate

Returns the NSFontManager's delegate

fontDescriptorsInCollection:
collection
Description forthcoming.
fontMenu:
create

Returns the font menu, creates it (if needed) if create is `YES`.

See Also: -setFontMenu:

fontNamed:
typeface
hasTraits:
fontTraitMask
Description forthcoming.
fontPanel:
create

Returns the NSFontPanel, creates it (if needed) if create is `YES`.

See Also: +setFontPanelFactory:

fontWithFamily:
family
traits:
traits
weight:
weight
size:
size
Description forthcoming.
isEnabled

Returns whether the NSFontPanel is enabled (if exists)

isMultiple

Returns whether the current selection contains multiple fonts

localizedNameForFamily:
family
face:
face
Description forthcoming.
modifyFont:
sender
Description forthcoming.
modifyFontViaPanel:
sender
Description forthcoming.
orderFrontFontPanel:
sender
Description forthcoming.
removeCollection:
collection
Description forthcoming.
removeFontDescriptor:
descriptor
fromCollection:
collection
Description forthcoming.
removeFontTrait:
sender
Description forthcoming.
selectedFont

Returns the selected font

See Also: -setSelectedFont:isMultiple:

sendAction
Description forthcoming.
setAction:
aSelector

Sents the action sents by the NSFontManager to aSelector.

See Also: -action

setDelegate:
anObject

Sets the NSFontManager's delegate to anObject

FIXME: This is extremely unclear. At the moment, the NSFontManager's delegate is never used. This can't be right.
setEnabled:
flag

Enables/disables the NSFontPanel and the font menu (if they exist)

See Also: -isEnabled

setFontMenu:
newMenu

Sets the font menu to newMenu

See Also: -fontMenu:

setSelectedAttributes:
attributes
isMultiple:
flag
Description forthcoming.
setSelectedFont:
fontObject
isMultiple:
flag
Description forthcoming.
traitsOfFont:
aFont
Description forthcoming.
weightOfFont:
fontObject

Returns the weight of the NSFont fontObject

Software documentation for the NSObject(NSFontManagerDelegate) informal protocol
AppKit/NSFontManager.h
Description forthcoming.
fontManager:
sender
willIncludeFont:
fontName
Description forthcoming.