Skip to content

Row ​

Prints left and right text cells on one row, with an optional center cell. Each cell supports the usual text styling options.

Example

{
  "type": "row",
  "left": {
    "content": "Total"
  },
  "right": {
    "content": "12.50",
    "bold": true
  }
}

Fields

FieldTypeDescription
typerequired"row"

Discriminator for row blocks.

leftrequiredobject

Text cell aligned to the left edge.

Nested fields
FieldTypeDescription
contentrequiredstring

Text to print.

  • Minimum length: 1
  • Maximum length: 5000
boldoptionalboolean

Print text in bold.

fontoptionalstring

Printer font to use.

  • Allowed: "A", "B", "C", "D", "E", "special-A", "special-B"
underlineoptionalstring

Underline style.

  • Allowed: "1dot-thick", "2dot-thick", "none"
invertoptionalboolean

Print light text on a dark background.

sizeoptionalobject

Character width and height scaling.

Nested fields
FieldTypeDescription
widthrequired1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Horizontal character scale from 1 through 8.

heightrequired1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Vertical character scale from 1 through 8.

wordBreakoptionalstring

Text wrapping strategy.

  • Allowed: "break-all", "break-word"
centeroptionalobject

Optional text cell centered between the outer cells.

Nested fields
FieldTypeDescription
contentrequiredstring

Text to print.

  • Minimum length: 1
  • Maximum length: 5000
boldoptionalboolean

Print text in bold.

fontoptionalstring

Printer font to use.

  • Allowed: "A", "B", "C", "D", "E", "special-A", "special-B"
underlineoptionalstring

Underline style.

  • Allowed: "1dot-thick", "2dot-thick", "none"
invertoptionalboolean

Print light text on a dark background.

sizeoptionalobject

Character width and height scaling.

Nested fields
FieldTypeDescription
widthrequired1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Horizontal character scale from 1 through 8.

heightrequired1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Vertical character scale from 1 through 8.

wordBreakoptionalstring

Text wrapping strategy.

  • Allowed: "break-all", "break-word"
rightrequiredobject

Text cell aligned to the right edge.

Nested fields
FieldTypeDescription
contentrequiredstring

Text to print.

  • Minimum length: 1
  • Maximum length: 5000
boldoptionalboolean

Print text in bold.

fontoptionalstring

Printer font to use.

  • Allowed: "A", "B", "C", "D", "E", "special-A", "special-B"
underlineoptionalstring

Underline style.

  • Allowed: "1dot-thick", "2dot-thick", "none"
invertoptionalboolean

Print light text on a dark background.

sizeoptionalobject

Character width and height scaling.

Nested fields
FieldTypeDescription
widthrequired1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Horizontal character scale from 1 through 8.

heightrequired1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Vertical character scale from 1 through 8.

wordBreakoptionalstring

Text wrapping strategy.

  • Allowed: "break-all", "break-word"
gapoptionalinteger

Minimum gap between row cells, in characters.

  • Minimum: 0