TextConfig

data class TextConfig(val fontSize: Int = NORMAL, val align: Int = LEFT, val autoFeed: Boolean = true)

Data class for configuring text printing on a mobile point-of-sale (POS) printer.

This class allows you to set the text size, alignment, and whether automatic line feeding is enabled.

Constructors

Link copied to clipboard
constructor(fontSize: Int = NORMAL, align: Int = LEFT, autoFeed: Boolean = true)

Properties

Link copied to clipboard
val align: Int

The alignment of the text on the printed line. Use one of the constants from the PrinterLineAlign annotation:

Link copied to clipboard

Controls if automatic line feeding is enabled (true) or disabled (false). Set to false if printing line by line without gaps is required. Set to true only for the last line to advance the paper and display the printed result. The default value is true.

Link copied to clipboard

The size of the printed text. Use one of the constants from the PrinterTextSize annotation: