KevinGong2013 / Printer

Swift ticket printer framework for ESC/POS-compatible thermal printers.
Apache License 2.0
144 stars 72 forks source link

Set different character code esc/pos command #45

Closed JcDenton86 closed 1 year ago

JcDenton86 commented 3 years ago

Hi I would like to pass an ESC/POS command to the printer to set the encoding.

Specifically trying to pass the 'ESC t n' command where 'n' is a number defined in the character code table.

Based on this pod how can this be done?

Tried several things with no success.

Thank you in advance

KevinGong2013 commented 1 year ago
let receipt = Receipt(.🖨️58(.ascii))
<<~ .style(.selectsCharacterFont(.c))