changeFontToCustom method

ESCPOS changeFontToCustom(
  1. String fontCode
)

Change font to custom font like '$'

Implementation

ESCPOS changeFontToCustom(String fontCode) {
  // Assuming custom font codes are defined by the printer manual
  _data += Uint8List.fromList([27, 38, fontCode.codeUnitAt(0)]);
  return this;
}