meo-canvas - v9.0.2
    Preparing search index...

    Function Text

    • Draws text, with inline markup for styling runs inside it.

      Supported inline tags: <b>, <i>, <color="…">, <weight="…"> and <size="…">.

      Parameters

      • text: string | number

        The string to draw. Numbers are accepted and stringified.

      • Optionalprops: TextProps

        Font, colour, wrapping and layout.

      Returns CanvasElement

      Text('Total: <b><color="#22c55e">98%</color></b>', {
      fontSize: 18,
      fontFamily: 'Roboto',
      color: '#e2e8f0',
      maxLines: 2,
      ellipsis: true,
      })