KevinGong2013 / Printer

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

No text is printing #43

Closed umairgillani94 closed 1 year ago

umairgillani94 commented 3 years ago

Running the sample application but it is just printing images and QR and the last line in the blocks. it skips all other lines but adds spaces instead of the text

insideApple commented 2 years ago

Hi i have same issue facing did you get any solution?

insideApple commented 2 years ago

Hi i found a very strange solution when we add "\n" end of the string it print well

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

Try this code.