Class Font
Inheritance
CustomFont | Font 🡄 CustomFont 🡄 CanvasHelper 🡄 Object |
Properties
CharSet | |
Color | |
Height | |
Name | |
Orientation | |
Pitch | Possible values: 'fpDefault', 'fpVariable', 'fpFixed' |
Quality | Possible values: 'fqDefault', 'fqDraft', 'fqProof', 'fqNonAntialiased', 'fqAntialiased', 'fqCleartype', 'fqCleartypeNatural' |
Size | |
Style | Style of the font. |
Methods
assign ( font ) | Copies the contents of the font given as parameter to this font. |
getColor () | Gets the color of the font. |
getName () | Gets the fontname of the font. |
getSize () | Gets the size of the font. |
setColor ( color ) | Sets the color of the font. |
setName ( name ) | Sets the fontname of the font. |
setSize ( size ) | Sets the size of the font. |
Creation
createFont () | Returns a font object. |
Inheritance
- CustomFont
- Font 🡄 CustomFont 🡄 CanvasHelper 🡄 Object
Properties
- CharSet
-
Type:
integer - Color
-
Type:
integer - Height
-
Type:
integer - Name
-
Type:
- Orientation
-
Type:
integer - Pitch
-
Possible values: 'fpDefault', 'fpVariable', 'fpFixed'
Type:
- Quality
-
Possible values: 'fqDefault', 'fqDraft', 'fqProof', 'fqNonAntialiased', 'fqAntialiased', 'fqCleartype', 'fqCleartypeNatural'
Type:
- Size
-
Type:
integer - Style
-
Style of the font.
Possible values: ['fsBold', 'fsItalic', 'fsStrikeOut', 'fsUnderline']
Type:
string set
Methods
- assign ( font )
-
Copies the contents of the font given as parameter to this font.
Parameters:
- font
- getColor ()
-
Gets the color of the font.
Returns:
-
integer
- getName ()
-
Gets the fontname of the font.
Returns:
- getSize ()
-
Gets the size of the font.
Returns:
-
integer
- setColor ( color )
-
Sets the color of the font.
Parameters:
- color integer
- setName ( name )
-
Sets the fontname of the font.
Parameters:
- name string
- setSize ( size )
-
Sets the size of the font.
Parameters:
- size integer