FontHandler

FontHandler

(private) new FontHandler()

Helper class for font handling

Source:

Methods

addCustomFontToSvg()

Assigns font-related attributes

Source:

clearFont()

Clears all font-related attributes

Source:

(private) getFontHtml()

Return full font declaration which can be set as font property like '12pt Arial bold'

Source:

getFontName()

Returns font name

Source:

(private) isMonospace()

Returns true in case of monospace font

Source:

roundAngle()

Allign angle to step raster, add optional offset

Source:

setAlign()

Set text align (optional)

Source:

setAngle()

Set text angle (optional)

Source:

setColor()

Set text color (optional)

Source:

setFont()

Assigns font-related attributes

Source:

(private) setNameStyleWeight()

Directly set name, style and weight for the font

Source:

setPainter()

Set painter for which font will be applied

Source:

setSize()

Set font size (optional)

Source: