Text Config
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
Properties
The alignment of the text on the printed line. Use one of the constants from the PrinterLineAlign annotation: - PrinterLineAlign.LEFT: Aligns text to the left (default). - PrinterLineAlign.RIGHT: Aligns text to the right. - PrinterLineAlign.CENTER: Centers the text.
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.
The size of the printed text. Use one of the constants from the PrinterTextSize annotation: - PrinterTextSize.SMALL: Small text size. - PrinterTextSize.NORMAL: Normal text size (default). - PrinterTextSize.LARGE: Large text size. - PrinterTextSize.XLARGE: Extra-large text size.