Skip to main content

DrawTextFit

Callable

  • DrawTextFit(Text: string, X: number, Y: number, Width: number, Color: string, BackColor?: string): void

  • Draws a text element on the canvas that will fit on the specified width


    Parameters

    • Text: string

      Text to draw

    • X: number

      Position of the text on the X axis

    • Y: number

      Position of the text on the Y axis

    • Width: number

      Width in which the text has to fit

    • Color: string

      Color of the text

    • optionalBackColor: string

      Color of the background

    Returns void

    • Nothing