fontSize method

ESCPOS fontSize(
  1. ESCFontSize size
)

Sets the character size

The parameter size ranges from 0 to 255, where bits 0 to 3 set the character height and bits 4 to 7 set the character width link : https://files.for-t.ru/Printers_receipts

Implementation

ESCPOS fontSize(ESCFontSize size) {
  _data += Uint8List.fromList([29, 33, size.value]);
  return this;
}