#import <CPFontManager.h>
Definition at line 2 of file CPFontManager.h.
◆ action()
◆ addFontTrait:()
- (action) addFontTrait: |
|
(id) |
sender |
|
|
implementation |
◆ availableFonts()
- (CPArray) availableFonts |
|
|
|
|
implementation |
◆ convertFont:()
Convert a font according to current font changes, provided by the object that initiated the font change.
- Parameters
-
aFont | The font to convert. |
- Returns
- The converted font or
aFont
if the conversion failed.
Definition at line 188 of file CPFontManager.j.
◆ convertFont:toFace:()
◆ convertFont:toHaveTrait:()
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
-
aFont | The font to convert. |
fontTrait | The new font traits mask. |
- Returns
- The converted font or
aFont
if the conversion failed.
Definition at line 201 of file CPFontManager.j.
◆ convertFont:toNotHaveTrait:()
Convert a font to not have the specified Font traits. The font is unchanged expect for the specified Font traits.
- Parameters
-
aFont | The font to convert. |
fontTrait | The 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:()
Convert a font to have specified size. The font is unchanged expect for the specified size.
- Parameters
-
aFont | The font to convert. |
aSize | The new font size. |
- Returns
- The converted font or
aFont
if the conversion failed.
Definition at line 342 of file CPFontManager.j.
◆ delegate()
◆ fontPanel:()
This method open the font panel, create it if necessary.
- Parameters
-
sender | The 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
-
aFontName | the name of the font |
Definition at line 158 of file CPFontManager.j.
◆ init()
Initializes the receiver
- Returns
- the initialized receiver
Reimplemented from CPObject.
Definition at line 109 of file CPFontManager.j.
◆ isMultiple()
◆ modifyFont:()
- (void) modifyFont: |
|
(id) |
sender |
|
|
implementation |
◆ modifyFontViaPanel:()
- (void) modifyFontViaPanel: |
|
(id) |
sender |
|
|
implementation |
This method causes the receiver to send its action message.
- Parameters
-
sender | The object that sent the message. (a Font panel) |
Definition at line 367 of file CPFontManager.j.
◆ orderFrontFontPanel:()
- (void) orderFrontFontPanel: |
|
(id) |
sender |
|
|
implementation |
◆ selectedFont()
◆ sendAction()
◆ setAction:()
- (void) setAction: |
|
(SEL) |
aValue |
|
|
implementation |
◆ setDelegate:()
- (void) setDelegate: |
|
(id) |
aValue |
|
|
implementation |
◆ 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 |
◆ setSelectedFont:isMultiple:()
- (void) setSelectedFont: |
|
(CPFont) |
aFont |
isMultiple: |
|
(BOOL) |
aFlag |
|
|
| |
|
implementation |
◆ setTarget:()
- (void) setTarget: |
|
(id) |
aValue |
|
|
implementation |
◆ sharedFontManager()
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()
◆ traitsOfFont:()
- (CPFontTraitMask) traitsOfFont: |
|
(CPFont) |
aFont |
|
|
implementation |
◆ weightOfFont:()
- (int) weightOfFont: |
|
(CPFont) |
aFont |
|
|
implementation |
The documentation for this class was generated from the following files: