API  0.9.10
CPFontDescriptor Class Reference

#import <CPFontDescriptor.h>

+ Inheritance diagram for CPFontDescriptor:

Instance Methods

(CPString- cssString
 
(void) - encodeWithCoder:
 
(CPDictionary- fontAttributes
 
(CPFontDescriptor- fontDescriptorByAddingAttributes:
 
(CPFontDescriptor- fontDescriptorWithSize:
 
(CPFontDescriptor- fontDescriptorWithSymbolicTraits:
 
(CPString- fontFamilyCSSString
 
(CPString- fontSizeCSSString
 
(CPString- fontStyleCSSString
 
(CPString- fontVariantCSSString
 
(CPString- fontWeightCSSString
 
(id) - initWithCoder:
 
(id) - initWithFontAttributes:
 
(id) - objectForKey:
 
(float) - pointSize
 
(CPFontSymbolicTraits) - symbolicTraits
 
- 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:
 
(id) - init
 
(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

(CPFontDescriptor+ fontDescriptorWithFontAttributes:
 
(CPFontDescriptor+ fontDescriptorWithName:size:
 
- 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 CPFontDescriptor.h.

Method Documentation

◆ cssString()

- (CPString) cssString
implementation

Provided by category CPFontDescriptor(CPFontCSSHelper).

Definition at line 304 of file CPFontDescriptor.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Writes the font descriptor to a coder.

Parameters
aCoderthe coder to which the data will be written

Provided by category CPFontDescriptor(CPCoding).

Definition at line 235 of file CPFontDescriptor.j.

◆ fontAttributes()

- (CPDictionary) fontAttributes
implementation

Definition at line 194 of file CPFontDescriptor.j.

◆ fontDescriptorByAddingAttributes:()

- (CPFontDescriptor) fontDescriptorByAddingAttributes: (CPDictionary attributes
implementation

Returns a new font descriptor that is the same as the receiver but with the specified attributes taking precedence over the existing ones.

Parameters
attributesa dictionary that describe the desired font descriptor
Returns
the new font descriptor

Definition at line 144 of file CPFontDescriptor.j.

◆ fontDescriptorWithFontAttributes:()

+ (CPFontDescriptor) fontDescriptorWithFontAttributes: (CPDictionary attributes
implementation

Returns a font descriptor with the specified attributes.

Parameters
attributesa dictionary that describe the desired font descriptor
Returns
the requested font descriptor

Definition at line 101 of file CPFontDescriptor.j.

◆ fontDescriptorWithName:size:()

+ (CPFontDescriptor) fontDescriptorWithName: (CPString fontName
size: (float)  size 
implementation

Returns a font descriptor with the specified name and size.

Parameters
fontNamethe name of the font
aSizethe size of the font (in points)
Returns
the requested font descriptor

Definition at line 113 of file CPFontDescriptor.j.

◆ fontDescriptorWithSize:()

- (CPFontDescriptor) fontDescriptorWithSize: (float)  aSize
implementation

Returns a new font descriptor that is the same as the receiver but with the specified size taking precedence over the existing ones.

Parameters
aSizethe new size
Returns
the new font descriptor

Definition at line 159 of file CPFontDescriptor.j.

◆ fontDescriptorWithSymbolicTraits:()

- (CPFontDescriptor) fontDescriptorWithSymbolicTraits: (CPFontSymbolicTraits)  symbolicTraits
implementation

Returns a new font descriptor that is the same as the receiver but with the specified symbolic traits taking precedence over the existing ones.

Parameters
symbolicTraitsthe desired new symbolic traits
Returns
the new font descriptor

Definition at line 175 of file CPFontDescriptor.j.

◆ fontFamilyCSSString()

- (CPString) fontFamilyCSSString
implementation

Provided by category CPFontDescriptor(CPFontCSSHelper).

Definition at line 276 of file CPFontDescriptor.j.

◆ fontSizeCSSString()

- (CPString) fontSizeCSSString
implementation

Provided by category CPFontDescriptor(CPFontCSSHelper).

Definition at line 271 of file CPFontDescriptor.j.

◆ fontStyleCSSString()

- (CPString) fontStyleCSSString
implementation

Provided by category CPFontDescriptor(CPFontCSSHelper).

Definition at line 249 of file CPFontDescriptor.j.

◆ fontVariantCSSString()

- (CPString) fontVariantCSSString
implementation

Provided by category CPFontDescriptor(CPFontCSSHelper).

Definition at line 296 of file CPFontDescriptor.j.

◆ fontWeightCSSString()

- (CPString) fontWeightCSSString
implementation

Provided by category CPFontDescriptor(CPFontCSSHelper).

Definition at line 254 of file CPFontDescriptor.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the font descriptor from a coder.

Parameters
aCoderthe coder from which to read the font descriptor data
Returns
the initialized font

Provided by category CPFontDescriptor(CPCoding).

Definition at line 225 of file CPFontDescriptor.j.

◆ initWithFontAttributes:()

- (id) initWithFontAttributes: (CPDictionary attributes
implementation

Initialize a font descriptor with the specified attributes.

Parameters
attributesa dictionary that describe the desired font descriptor
Returns
the requested font descriptor

Definition at line 124 of file CPFontDescriptor.j.

◆ objectForKey:()

- (id) objectForKey: (id)  aKey
implementation

Definition at line 189 of file CPFontDescriptor.j.

◆ pointSize()

- (float) pointSize
implementation

Definition at line 199 of file CPFontDescriptor.j.

◆ symbolicTraits()

- (CPFontSymbolicTraits) symbolicTraits
implementation

Definition at line 206 of file CPFontDescriptor.j.


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