KevinGong2013 / Printer

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

Remove extra line feed/return? #41

Open michaelmruta opened 4 years ago

michaelmruta commented 4 years ago

there is a new line for every text i print, like the example below how can i fix this?

.plainText("Text A"), .plainText("Text")

Text A

Text B

.plainText("Text A\n Text B"), this works but i want to use the block w/ text alignment

Text A
Text B

IMG_5866

abaif commented 4 years ago

This is a really big deal, printing the sample ticket I got about 10 inches long! Also need to put text grouped for showing some tablet struct.

For now, I`m using processed images to fill these need, until got solutions this is a workaround.

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