CPFont Class Reference
[AppKit]

List of all members.

Public Member Functions

(float) - size [implementation]
(CPString- cssString [implementation]
(CPString- familyName [implementation]
(id) - initWithCoder: [implementation]
(void) - encodeWithCoder: [implementation]

Static Public Member Functions

(CPFont+ fontWithName:size: [implementation]
(CPFont+ boldFontWithName:size: [implementation]
(CPFont+ systemFontOfSize: [implementation]
(CPFont+ boldSystemFontOfSize: [implementation]


Detailed Description

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.

Definition at line 34 of file CPFont.j.


Member Function Documentation

+ (CPFont) boldFontWithName: (CPString aName
size: (float)  aSize 
[implementation]

Returns a bold font with the specified name and size.

Parameters:
aName the name of the font
aSize the size of the font (in points)
Returns:
the requested bold font

Definition at line 60 of file CPFont.j.

+ (CPFont) boldSystemFontOfSize: (CPSize)  aSize   [implementation]

Returns the bold system font scaled to the specified size

Parameters:
aSize the size of the font (in points)
Returns:
the requested bold system font

Definition at line 80 of file CPFont.j.

- (CPString) cssString   [implementation]

Returns the font as a CSS string

Definition at line 117 of file CPFont.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Writes the font information out to a coder.

Parameters:
aCoder the coder to which the data will be written

Definition at line 154 of file CPFont.j.

- (CPString) familyName   [implementation]

Returns the font's family name

Definition at line 125 of file CPFont.j.

+ (CPFont) fontWithName: (CPString aName
size: (float)  aSize 
[implementation]

Returns a font with the specified name and size.

Parameters:
aName the name of the font
aSize the size of the font (in points)
Returns:
the requested font

Definition at line 49 of file CPFont.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Initializes the font from a coder.

Parameters:
aCoder the coder from which to read the font data
Returns:
the initialized font

Definition at line 143 of file CPFont.j.

- (float) size   [implementation]

Returns the font size (in points)

Definition at line 109 of file CPFont.j.

+ (CPFont) systemFontOfSize: (CPSize)  aSize   [implementation]

Returns the system font scaled to the specified size

Parameters:
aSize the size of the font (in points)
Returns:
the requested system font

Definition at line 70 of file CPFont.j.


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

Generated on Wed May 20 12:44:00 2009 for Cappuccino by  doxygen 1.5.8