TextObjectDataType: {
    content: {
        bold: boolean;
        characterSize: number;
        color: string;
        font: string;
        isOutlineEnabled: boolean;
        isShadowEnabled: boolean;
        italic: boolean;
        outlineColor: string;
        outlineThickness: float;
        shadowAngle: float;
        shadowBlurRadius: float;
        shadowColor: string;
        shadowDistance: float;
        shadowOpacity: float;
        text: string;
        textAlignment: string;
        underlined: boolean;
        verticalTextAlignment: string;
    };
}

Base parameters for gdjs.TextRuntimeObject

Type declaration

  • content: {
        bold: boolean;
        characterSize: number;
        color: string;
        font: string;
        isOutlineEnabled: boolean;
        isShadowEnabled: boolean;
        italic: boolean;
        outlineColor: string;
        outlineThickness: float;
        shadowAngle: float;
        shadowBlurRadius: float;
        shadowColor: string;
        shadowDistance: float;
        shadowOpacity: float;
        text: string;
        textAlignment: string;
        underlined: boolean;
        verticalTextAlignment: string;
    }
    • bold: boolean

      Is Bold?

    • characterSize: number

      The size of the characters

    • color: string

      The text color in an RGB representation

    • font: string

      The font name

    • isOutlineEnabled: boolean
    • isShadowEnabled: boolean
    • italic: boolean

      Is Italic?

    • outlineColor: string

      The outline color in an RGB representation

    • outlineThickness: float
    • shadowAngle: float
    • shadowBlurRadius: float
    • shadowColor: string

      The shadow color in an RGB representation

    • shadowDistance: float
    • shadowOpacity: float
    • text: string

      The text of the object

    • textAlignment: string
    • underlined: boolean

      Is Underlined?

    • verticalTextAlignment: string