Text
Prints text with optional alignment, emphasis, font, size, and wrapping settings.
Example
{
"type": "text",
"content": "Hello from print-blocks",
"align": "center",
"bold": true
}Fields
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
typerequired | "text" | Discriminator for text blocks. | |||||||||
contentrequired | string | Text to print.
| |||||||||
alignoptional | string | Horizontal text alignment.
| |||||||||
boldoptional | boolean | Print text in bold. | |||||||||
fontoptional | string | Printer font to use.
| |||||||||
underlineoptional | string | Underline style.
| |||||||||
invertoptional | boolean | Print light text on a dark background. | |||||||||
sizeoptional | object | Character width and height scaling. Nested fields
| |||||||||
wordBreakoptional | string | Text wrapping strategy.
| |||||||||
inlineoptional | boolean | Do not feed a line after printing this text. |