brasizza / sunmi_printer

BSD 3-Clause "New" or "Revised" License
39 stars 46 forks source link

Total column width must be equal to 12 #63

Closed eslamesmail-hub closed 11 months ago

eslamesmail-hub commented 1 year ago

Hello, I don't use columns or rows, and keep saying that (total column width must be equal to 12). What is the problem here pls??

1 2

brasizza commented 1 year ago

Its an esc pos print, using another method, so this exception comes from the aild because your string is too big, you can use the row from esc pos or you can break line with line() to see if works @eslamesmail-hub

eslamesmail-hub commented 12 months ago

I found where is the problem. It's with the Arabic words, when I removed it, the print worked fine. so can you tell me how to make it work on both en and ar?? @brasizza

brasizza commented 12 months ago

I found where is the problem. It's with the Arabic words, when I removed it, the print worked fine. so can you tell me how to make it work on both en and ar?? @brasizza

If you are doing escpos unfortunately there is nothing that i can do because the printer prints de list buffer in raw mode