mjafartp / flutter_esc_pos_utils

Flutter package of esc/pos utils
GNU General Public License v3.0
26 stars 49 forks source link

PosColumn PosAlign.right contains Japanese or Chinese,break line not correct #16

Open rrchx opened 1 year ago

rrchx commented 1 year ago

Please print like this! row([ PosColumn(width:9, text: '豚肉・木耳と玉子炒め弁当', styles: PosStyles(align: PosAlign.left), containsChinese: true), PosColumn(width:3, text: '¥1,990', styles: PosStyles(align: PosAlign.right), containsChinese: true), ])

'¥1,990' will be 2 lines for print!

huahua8893 commented 1 year ago

Some too, I'm working on modify source code

rrchx commented 1 year ago

Some too, I'm working on modify source code

You can use “flutter_pos_printer_platform” this lib!

huahua8893 commented 1 year ago

Thank you for advise Yes, I'm using that package too, and “flutter_pos_printer_platform” just update yesterday, seems like included "esc_pos_utils" package, but when I print '¥1,990', it's looks like this: image The symbol just have single line in the middle which half-width '¥', can't print two lines which full-width, I think it's about codeTable like this bytes += generator.setGlobalCodeTable('CP1252');, but I don't know the right codeTable

DuQuanzhong commented 6 months ago

codeTable= "ISO_8859-15 "; use this "¥"

DuQuanzhong commented 6 months ago

WechatIMG40

huahua8893 commented 6 months ago

@DuQuanzhong 感谢,但是这已经是上一家公司的事了,上一家已经倒闭了doge