API  0.9.10
CPFontManager Class Reference

#import <CPFontManager.h>

+ Inheritance diagram for CPFontManager:

Instance Methods

(SEL) - action
 
(action- addFontTrait:
 
(CPArray) - availableFonts
 
(CPFont- convertFont:
 
(CPFont- convertFont:toFace:
 
(CPFont- convertFont:toHaveTrait:
 
(CPFont- convertFont:toNotHaveTrait:
 
(CPFont- convertFont:toSize:
 
(id) - delegate
 
(CPFontPanel- fontPanel:
 
(CPArray) - fontWithNameIsAvailable:
 
(id) - init
 
(BOOL) - isMultiple
 
(void) - modifyFont:
 
(void) - modifyFontViaPanel:
 
(void) - orderFrontFontPanel:
 
(CPFont- selectedFont
 
(BOOL) - sendAction
 
(void) - setAction:
 
(void) - setDelegate:
 
(void) - setMultiple:
 
(void) - setSelectedFont:isMultiple:
 
(void) - setTarget:
 
(id) - target
 
(CPFontTraitMask) - traitsOfFont:
 
(int) - weightOfFont:
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray) - exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(void) + setFontManagerFactory:
 
(void) + setFontPanelFactory:
 
(CPFontManager+ sharedFontManager
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

Definition at line 2 of file CPFontManager.h.

Method Documentation

◆ action()

- (SEL) action
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 527 of file CPFontManager.j.

◆ addFontTrait:()

- (action) addFontTrait: (id)  sender
implementation

Definition at line 231 of file CPFontManager.j.

◆ availableFonts()

- (CPArray) availableFonts
implementation

Returns an array of the available fonts

Definition at line 122 of file CPFontManager.j.

◆ convertFont:()

- (CPFont) convertFont: (CPFont aFont
implementation

Convert a font according to current font changes, provided by the object that initiated the font change.

Parameters
aFontThe font to convert.
Returns
The converted font or aFont if the conversion failed.

Definition at line 188 of file CPFontManager.j.

◆ convertFont:toFace:()

- (CPFont) convertFont: (CPFont aFont
toFace: (CPString aTypeface 
implementation

Definition at line 217 of file CPFontManager.j.

◆ convertFont:toHaveTrait:()

- (CPFont) convertFont: (CPFont aFont
toHaveTrait: (CPFontTraitMask)  fontTrait 
implementation

Convert a font to have the specified Font traits. The font is unchanged expect for the specified Font traits. Using CPUnboldFontMask or CPUnitalicFontMask will respectively remove Bold and Italic traits.

Parameters
aFontThe font to convert.
fontTraitThe new font traits mask.
Returns
The converted font or aFont if the conversion failed.

Definition at line 201 of file CPFontManager.j.

◆ convertFont:toNotHaveTrait:()

- (CPFont) convertFont: (CPFont aFont
toNotHaveTrait: (CPFontTraitMask)  fontTrait 
implementation

Convert a font to not have the specified Font traits. The font is unchanged expect for the specified Font traits.

Parameters
aFontThe font to convert.
fontTraitThe font traits mask to remove.
Returns
The converted font or aFont if the conversion failed.

Definition at line 308 of file CPFontManager.j.

◆ convertFont:toSize:()

- (CPFont) convertFont: (CPFont aFont
toSize: (float)  aSize 
implementation

Convert a font to have specified size. The font is unchanged expect for the specified size.

Parameters
aFontThe font to convert.
aSizeThe new font size.
Returns
The converted font or aFont if the conversion failed.

Definition at line 342 of file CPFontManager.j.

◆ delegate()

- (id) delegate
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 543 of file CPFontManager.j.

◆ fontPanel:()

- (CPFontPanel) fontPanel: (BOOL)  createIt
implementation

This method open the font panel, create it if necessary.

Parameters
senderThe object that sent the message.

Definition at line 250 of file CPFontManager.j.

◆ fontWithNameIsAvailable:()

- (CPArray) fontWithNameIsAvailable: (CPString aFontName
implementation

Returns the available fonts matching the provided name.

Parameters
aFontNamethe name of the font

Definition at line 158 of file CPFontManager.j.

◆ init()

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPObject.

Definition at line 109 of file CPFontManager.j.

◆ isMultiple()

- (BOOL) isMultiple
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 559 of file CPFontManager.j.

◆ modifyFont:()

- (void) modifyFont: (id)  sender
implementation

Definition at line 354 of file CPFontManager.j.

◆ modifyFontViaPanel:()

- (void) modifyFontViaPanel: (id)  sender
implementation

This method causes the receiver to send its action message.

Parameters
senderThe object that sent the message. (a Font panel)

Definition at line 367 of file CPFontManager.j.

◆ orderFrontFontPanel:()

- (void) orderFrontFontPanel: (id)  sender
implementation

Definition at line 349 of file CPFontManager.j.

◆ selectedFont()

- (CPFont) selectedFont
implementation

Definition at line 171 of file CPFontManager.j.

◆ sendAction()

- (BOOL) sendAction
implementation

Definition at line 240 of file CPFontManager.j.

◆ setAction:()

- (void) setAction: (SEL)  aValue
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 535 of file CPFontManager.j.

◆ setDelegate:()

- (void) setDelegate: (id)  aValue
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 551 of file CPFontManager.j.

◆ setFontManagerFactory:()

+ (void) setFontManagerFactory: (Class)  aClass
implementation

Sets the class that will be used to create the application's font manager.

Definition at line 95 of file CPFontManager.j.

◆ setFontPanelFactory:()

+ (void) setFontPanelFactory: (Class)  aClass
implementation

Sets the class that will be used to create the application's Font panel.

Definition at line 103 of file CPFontManager.j.

◆ setMultiple:()

- (void) setMultiple: (BOOL)  aValue
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 567 of file CPFontManager.j.

◆ setSelectedFont:isMultiple:()

- (void) setSelectedFont: (CPFont aFont
isMultiple: (BOOL)  aFlag 
implementation

Definition at line 163 of file CPFontManager.j.

◆ setTarget:()

- (void) setTarget: (id)  aValue
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 519 of file CPFontManager.j.

◆ sharedFontManager()

+ (CPFontManager) sharedFontManager
implementation

Returns the application's font manager. If the font manager does not exist yet, it will be created.

Definition at line 82 of file CPFontManager.j.

◆ target()

- (id) target
implementation

Synthesized accessor method.

Provided by category CPFontManager(CPSynthesizedAccessors).

Definition at line 511 of file CPFontManager.j.

◆ traitsOfFont:()

- (CPFontTraitMask) traitsOfFont: (CPFont aFont
implementation

Definition at line 183 of file CPFontManager.j.

◆ weightOfFont:()

- (int) weightOfFont: (CPFont aFont
implementation

Definition at line 176 of file CPFontManager.j.


The documentation for this class was generated from the following files: