Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rrchx opened this issue Apr 12, 2023 · 6 comments

Comments

@rrchx
Copy link

rrchx commented Apr 12, 2023

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
Copy link

Some too, I'm working on modify source code

@rrchx
Copy link
Author

rrchx commented Apr 18, 2023

Some too, I'm working on modify source code

You can use “flutter_pos_printer_platform” this lib!

@huahua8893
Copy link

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
Copy link

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

@DuQuanzhong
Copy link

WechatIMG40

@huahua8893
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants