bbCodeToCanvas

Description

Generates a canvas by following a specific format, canvas are mainly used for printing.

This does not include images, to include please refer to bbCodeToCanvasSync.

Platform Supported

  • Web

  • Mobile

Input / Parameter

Text Format

  • Bold: [b]The text to apply bold.[/b]

  • Italic: [i]The text to apply italic.[/i]

  • Font: [font={monospace|ocrb}]The text to apply the font.[/font]

  • Size: [size={number}]The text to apply the size.[/size]

  • Linespace: [linespace={number}]The text to apply the linespace.[/linespace]

  • Alignment: [alignment={left|right}]The text to apply the alignment, where it will start.[/alignment]

  • Underline: [u]The text to apply underline.[/u]

  • Strikethrough: [s]The text to apply strikethrough.[/s]

Output

See also:

Alternative Implementation

Last updated