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:
- (void)
addFontTrait: (id)sender;
Availability: OpenStep
Description forthcoming.
- (NSArray*)
availableFontFamilies;
Availability: OpenStep
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.
- (
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
- (
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.
- (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
- (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)
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;
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;
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;
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;
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;
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;
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;
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;
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