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:

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:

    string
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:

setSize ( size )
Sets the size of the font.

Parameters:

  • size integer

Creation

createFont ()
Returns a font object.

(default initialized based on the main ce window).

Returns:

    Font
generated by LDoc 1.4.6-antum-dev-1 Last updated 2019-02-27 23:30:35