IFontDefaultConfig Interface

A structure defining the default parameters of fonts.

example
{
    "defaultItemsConfig": {
        "text": {
            "font": {
                "postScriptName": "Impact",
                "size": 33,
                "fauxBold": true,
                "fauxItalic": true
            },
            "color": "rgb(30,30,30)",
            "shadow": {
                "color": "rgb(255,0,0)",
                "size": 0.4,
                "angle": 45,
                "distance": 2
            },
            "stroke": {
                "size": 0.3
            }
        }
    }
}

Properties

Optional allCaps

allCaps: boolean

Enables the all caps style for text. The default value is false.

Optional fauxBold

fauxBold: boolean

Enables the faux bold style for text. The default value is false.

Optional fauxItalic

fauxItalic: boolean

Enables the faux italic style for text. The default value is false.

Optional postScriptName

postScriptName: string

The font name of text. The default value is "ArialMT".

Optional size

size: number

The font size of text, in points.