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

Condensed mode do not print Cyrilic letters #74

Open
ghost opened this issue Oct 28, 2024 · 3 comments
Open

Condensed mode do not print Cyrilic letters #74

ghost opened this issue Oct 28, 2024 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2024

Test printer Birch CP-Q3, set to proper code page - 1251-Cyrilic(Windows) and printing on 80mm wide paper works flawlessly. Now wanted to adjust printing to 58mm rolls, so I put printer jumper in required position and fun started :)
In normal mode (prn.NormalWidth) everything is printed OK, but putting it in Condensed mode (PrinterModeState.On) has no use for Cyrilic - there are just empty space marks instead of expected characters. At the same time printing width fits perfectly.
So this code:
Printer prn = new Printer("CP-Q3", "Windows-1251");
prn.CondensedMode(ESC_POS_USB_NET.Enums.PrinterModeState.On);
prn.Append("=====ОВО ЈЕ ЋИРИЛИЦА=====");
prn.CondensedMode(ESC_POS_USB_NET.Enums.PrinterModeState.Off);
is resulting with: "===== =====" // Empty space in the middle is actually 15 characters wide - GitHub shortens it when message is saved

Than tried CondensedMode with string constructor, as well as Font method - both ways give question marks for each character wanted to print. Like:
prn.CondensedMode("=====ОВО ЈЕ ЋИРИЛИЦА=====");
and
prn.Font("=====ОВО ЈЕ ЋИРИЛИЦА=====", ESC_POS_USB_NET.Enums.Fonts.FontB);
both print: "=====???????????????=====");
Tested it for few hours and concluded that problem emerges with characters/code pages other than IBM Standard, like 1251-Cyrilic or 1250-Central Europian (characters like ŠšĐđŽžČčĆć), both lower or upper case.
Any idea how to overcome this issue?

@kubaizi
Copy link

kubaizi commented Nov 4, 2024

did you figure it out, because i am trying for an arabic text and have the same issue

@ghost
Copy link
Author

ghost commented Nov 4, 2024

Unfortunately problem is not solved, seems that some printers have limited character sets, therefore some sets, like one for Condensed Mode (smaller), are omitted. So, most likely it is printers problem, possible solvable with firmware update (if any).

@kubaizi
Copy link

kubaizi commented Nov 5, 2024

i am trying System.Drowing
it is working great
just draw the whole image and send it to the printer

check it out,,, Goodluck

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

1 participant