receipt-print-hq / escpos-tools

Utilities to read ESC/POS print data
MIT License
200 stars 73 forks source link

Initial implementation of double-with and double-heigh text in html. #15

Closed mike42 closed 7 years ago

mike42 commented 7 years ago

This pull request implements double-height and double-width text at a line-level. This is triggered by SelectPrintModeCmd or SelectCharacterSizeCmd. 1x1, 1x2, 2x1 and 2x2 are all supported, with higher multiples capped for some compatibility (eg attempting 4x width will cause 2x width to be used).

Some unrelated bug fixes are also included-

Switching the values mid-line does work, but the character alignment (width and height) is quite buggy.

This will require a lot of re-work to display perfectly, and is not as important as some other missing features, so I'm submitting this as-is.

Example from #8-

screenshot from 2017-05-21 12-51-36

Larger example showing heights for #12, outstanding rendering issues-

screenshot from 2017-05-21 12-57-19

Reference-