You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

IFontSettings Interface

Applies to: Customer's Canvas On-Premises; Design Editor 4.4.25, 4.x (may differ) · Archived documentation

A configuration of font settings.

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
            },
            "overflowStrategy": "FitToWidth",
            "textPermissions": {
                "allowChangeFontColor": false,
                "allowChangeShadow": false,
                "allowChangeStroke": false
            }
        }
    }
}

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. The default value is 10.