May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSFontManager — Mac OS X 10.0
This class defines the interface to the system Cocoa uses to
coordinate the usage of fonts in an application. Part of
NSFontManager’s duty is to keep
track of the currently selected font, and manage the interaction
between the Font Panel, Font menu, and text-bearing objects. To
obtain an application’s Font Manager, use the class
method sharedFontManager.
|
|
@interface NSFontManager : NSObject
|
// Accessor Methods
|
- (void)setEnabled:(BOOL)flag; |
- (void)setSelectedFont:(NSFont *)fontObj isMultiple:(BOOL)flag; |
- (NSFont *)selectedFont;
|
- (void)setDelegate:(id)anObject; |
- (id)delegate;
|
- (void)setAction:(SEL)aSelector; |
- (SEL)action;
|
- (void)setFontMenu:(NSMenu *)newMenu; |
// Class Methods
|
+ (void)setFontManagerFactory:(Class)factoryId; |
+ (void)setFontPanelFactory:(Class)factoryId; |
+ (NSFontManager *)sharedFontManager;
|
// Instance Methods
|
- (NSString *)localizedNameForFamily:(NSString *)family face:(NSString *)faceKey; |
- (void)addFontTrait:(id)sender; |
- (NSArray *)availableFontFamilies;
|
- (NSArray *)availableFontNamesWithTraits:(NSFontTraitMask)someTraits; |
- (NSArray *)availableFonts;
|
- (NSArray *)availableMembersOfFontFamily:(NSString *)fam; |
- (NSFont *)convertFont:(NSFont *)fontObj; |
- (NSFont *)convertFont:(NSFont *)fontObj toFace:(NSString *)typeface; |
- (NSFont *)convertFont:(NSFont *)fontObj ... |
Read now
Unlock full access