Up
Authors
- Fred Kiefer (
FredKiefer@gmx.de
)
-
Manages system and user fonts
Copyright: (C) 1996 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSFontManager.h
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
+ (void)
setFontManagerFactory: (Class)aClass;
Availability: OpenStep
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
+ (void)
setFontPanelFactory: (Class)aClass;
Availability: OpenStep
Sets the class used to create a NSFontPanel. If you
want to use a custom class it should be NSFontPanel
subclass
See Also:
-fontPanel:
+ (
NSFontManager*)
sharedFontManager;
Availability: OpenStep
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)
- (SEL)
action;
Availability: OpenStep
Returns the action sents by the NSFontManager.
See Also:
-setAction:
- (BOOL)
addCollection: (
NSString*)name
options: (int)options;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
addFontDescriptors: (
NSArray*)descriptors
toCollection: (
NSString*)collection;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
addFontTrait: (id)sender;
Availability: OpenStep
Description forthcoming.
- (
NSArray*)
availableFontFamilies;
Availability: OpenStep
Description forthcoming.
- (
NSArray*)
availableFontNamesMatchingFontDescriptor: (NSFontDescriptor*)descriptor;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSArray*)
availableFontNamesWithTraits: (
NSFontTraitMask)fontTraitMask;
Availability: OpenStep
Description forthcoming.
- (
NSArray*)
availableFonts;
Availability: OpenStep
Returns an array of available fonts.
- (
NSArray*)
availableMembersOfFontFamily: (
NSString*)family;
Availability: OpenStep
Description forthcoming.
- (
NSArray*)
collectionNames;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSFont*)
convertFont: (
NSFont*)fontObject;
Availability: OpenStep
- (
NSFont*)
convertFont: (
NSFont*)fontObject
toFace: (
NSString*)typeface;
Availability: OpenStep
Description forthcoming.
- (
NSFont*)
convertFont: (
NSFont*)fontObject
toFamily: (
NSString*)family;
Availability: OpenStep
Description forthcoming.
- (
NSFont*)
convertFont: (
NSFont*)fontObject
toSize: (float)size;
Availability: OpenStep
Description forthcoming.
- (
NSFont*)
convertWeight: (BOOL)upFlag
ofFont: (
NSFont*)fontObject;
Availability: OpenStep
Description forthcoming.
- (id)
delegate;
Availability: OpenStep
Returns the NSFontManager's delegate
- (
NSArray*)
fontDescriptorsInCollection: (
NSString*)collection;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSMenu*)
fontMenu: (BOOL)create;
Availability: OpenStep
Returns the font menu, creates it (if needed) if
create is YES
.
See Also:
-setFontMenu:
- (BOOL)
fontNamed: (
NSString*)typeface
hasTraits: (
NSFontTraitMask)fontTraitMask;
Availability: OpenStep
Description forthcoming.
- (
NSFontPanel*)
fontPanel: (BOOL)create;
Availability: OpenStep
- (
NSFont*)
fontWithFamily: (
NSString*)family
traits: (
NSFontTraitMask)traits
weight: (int)weight
size: (float)size;
Availability: OpenStep
Description forthcoming.
- (BOOL)
isEnabled;
Availability: OpenStep
Returns whether the NSFontPanel is enabled (if
exists)
- (BOOL)
isMultiple;
Availability: OpenStep
Returns whether the current selection contains
multiple fonts
- (
NSString*)
localizedNameForFamily: (
NSString*)family
face: (
NSString*)face;
Availability: OpenStep
Description forthcoming.
- (void)
modifyFont: (id)sender;
Availability: OpenStep
Description forthcoming.
- (void)
modifyFontViaPanel: (id)sender;
Availability: OpenStep
Description forthcoming.
- (void)
orderFrontFontPanel: (id)sender;
Availability: OpenStep
Description forthcoming.
- (BOOL)
removeCollection: (
NSString*)collection;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
removeFontDescriptor: (NSFontDescriptor*)descriptor
fromCollection: (
NSString*)collection;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
removeFontTrait: (id)sender;
Availability: OpenStep
Description forthcoming.
- (
NSFont*)
selectedFont;
Availability: OpenStep
- (BOOL)
sendAction;
Availability: OpenStep
Description forthcoming.
- (void)
setAction: (SEL)aSelector;
Availability: OpenStep
Sents the action sents by the NSFontManager to
aSelector.
See Also:
-action
- (void)
setDelegate: (id)anObject;
Availability: OpenStep
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.
- (void)
setEnabled: (BOOL)flag;
Availability: OpenStep
Enables/disables the NSFontPanel and the
font menu (if they exist)
See Also:
-isEnabled
- (void)
setFontMenu: (
NSMenu*)newMenu;
Availability: OpenStep
Sets the font menu to newMenu
See Also:
-fontMenu:
- (void)
setSelectedAttributes: (
NSDictionary*)attributes
isMultiple: (BOOL)flag;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
setSelectedFont: (
NSFont*)fontObject
isMultiple: (BOOL)flag;
Availability: OpenStep
Description forthcoming.
- (int)
weightOfFont: (
NSFont*)fontObject;
Availability: OpenStep
Returns the weight of the NSFont
fontObject
Instance Variables for NSFontManager Class
@protected SEL _action;
Availability: OpenStep
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.
@protected NSMutableDictionary* _collections;
Availability: OpenStep
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.
@protected id _delegate;
Availability: OpenStep
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.
@protected id _fontEnumerator;
Availability: OpenStep
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.
@protected NSMenu* _fontMenu;
Availability: OpenStep
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.
@protected BOOL _multiple;
Availability: OpenStep
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.
@protected NSDictionary* _selectedAttributes;
Availability: OpenStep
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.
@protected NSFont* _selectedFont;
Availability: OpenStep
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.
@protected NSFontTag _storedTag;
Availability: OpenStep
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.
@protected NSFontTraitMask _trait;
Availability: OpenStep
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.
- Declared in:
- AppKit/NSFontManager.h
Availability: OpenStep
Description forthcoming.
Method summary
- (BOOL)
fontManager: (id)sender
willIncludeFont: (
NSString*)fontName;
Availability: OpenStep
Description forthcoming.
Up