node-escpos icon indicating copy to clipboard operation
node-escpos copied to clipboard

strikethrough

Open leanhforevo opened this issue 6 years ago • 6 comments

hello! please show me the way to write text StrikeThrough

leanhforevo avatar Nov 01 '18 07:11 leanhforevo

printer.style("u") b => bold u => underline i => italic combo (bu, bi, iu, etc...)

we should put it on the doc, I guess

Psychopoulet avatar Nov 02 '18 09:11 Psychopoulet

Yes, please, add it to the documentation, because the comment you have put I do not understand it, and I would go great this option for a project with which I am right now ...

Thank you.

EDIT: okey, sorry, now I understand, I had confused with arrow functions EDIT2: switch with all the options: https://github.com/song940/node-escpos/blob/c6cd2d3cd224bdeb6bfb41686d85393178f4f9df/printer.js#L184

nameszian avatar Nov 03 '18 03:11 nameszian

that's it (sorry for confusion about arrow functions) there is no StrikeThrough, but you can use some other styles

Psychopoulet avatar Nov 05 '18 09:11 Psychopoulet

I'm tested in epson tm-t82II but not work(italic and strike) Italic:"\x1b\x34\x01" strikethrough:"\x1B\x28\x2D\x03\x00\x01\x02\x02"(I don't thing it right) doc: http://www.compuprint.com/docs/archive/i4056p.pdf I readed in phpesc and they said convert to image and print rasterimage :). You can close issue if only way print image

leanhforevo avatar Nov 06 '18 02:11 leanhforevo

I will not close this issue because there is a real missing data in the doc

Psychopoulet avatar Nov 06 '18 09:11 Psychopoulet

+1

brkrtp avatar Jul 16 '19 18:07 brkrtp