CPFont Class Reference
[AppKit]
List of all members.
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 37 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 63 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 83 of file CPFont.j.
Returns the font as a CSS string
Definition at line 120 of file CPFont.j.
- (CPString) description |
|
|
|
[implementation] |
- (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 167 of file CPFont.j.
- (CPString) familyName |
|
|
|
[implementation] |
Returns the font's family name
Definition at line 128 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 52 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 156 of file CPFont.j.
- (BOOL) isEqual: |
|
(id) |
anObject |
|
[implementation] |
- (float) size |
|
|
|
[implementation] |
Returns the font size (in points)
Definition at line 112 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 73 of file CPFont.j.
The documentation for this class was generated from the following file: