CPObjectCPFont
@implementation CPFont : CPObject
The CPFont
class allows control of the fonts used for displaying text anywhere on the screen. The primary method for getting a particular font is through one of the class methods that take a name and/or size as arguments, and return the appropriate CPFont
.
Method Summary | |
---|---|
+(CPFont) | boldFontWithName:(CPString)aName size:(float)aSize Returns a bold font with the specified name and size. |
+(CPFont) | boldSystemFontOfSize:(CPSize)aSize Returns the bold system font scaled to the specified size. |
+(CPFont) | fontWithName:(CPString)aName size:(float)aSize Returns a font with the specified name and size. |
+(CPFont) | systemFontOfSize:(CPSize)aSize Returns the system font scaled to the specified size. |
-(id) | initWithCoder:(CPCoder)aCoder Initializes the font from a coder. |
-(id) | NS_initWithCoder:(CPCoder)aCoder |
-(CPString) | cssString Returns the font as a CSS string. |
-(void) | encodeWithCoder:(CPCoder)aCoder Writes the font information out to a coder. |
-(CPString) | familyName Returns the font's family name. |
-(float) | size Returns the font size (in points). |
Method Detail |
---|
+(CPFont)boldFontWithName:(CPString)aName size:(float)aSize
aName
- the name of the fontaSize
- the size of the font (in points)+(CPFont)boldSystemFontOfSize:(CPSize)aSize
aSize
- the size of the font (in points)+(CPFont)fontWithName:(CPString)aName size:(float)aSize
aName
- the name of the fontaSize
- the size of the font (in points)+(CPFont)systemFontOfSize:(CPSize)aSize
aSize
- the size of the font (in points)-(id)initWithCoder:(CPCoder)aCoder
aCoder
- the coder from which to read the font data-(id)NS_initWithCoder:(CPCoder)aCoder
aCoder
-(CPString)cssString
-(void)encodeWithCoder:(CPCoder)aCoder
aCoder
- the coder to which the data will be written-(CPString)familyName
-(float)size
Created on Sat Sep 13 14:15:43 PDT 2008