KevinGong2013 / Printer

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

Why image print as Chinese text? #58

Open karthikeyan1425 opened 2 years ago

KevinGong2013 commented 1 year ago

Printer has been rewrite.

Please try this code.

let receipt = Receipt(.🖨️58(.ascii))
<<~ .style(.initialize)
 <<< Image(cgImage)
<<~ .page(.printAndFeed(lines: 1))