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

Add support for user-defined character sets #63

Open
mike42 opened this issue Oct 13, 2019 · 1 comment
Open

Add support for user-defined character sets #63

mike42 opened this issue Oct 13, 2019 · 1 comment

Comments

@mike42
Copy link
Contributor

mike42 commented Oct 13, 2019

Example file: unifont-print-buffer.bin

This contains the text "Hello World", rendered with a user-defined character set.

2019-10-unifont-example

We first need to detect/skip these commands correctly, then add substitution characters, then finally the correct bitmaps. Size/orientation is not required to close this issue off.

$ php esc2text.php unifont-print-buffer.bin 
WARNING: Unknown command ESC %
WARNING: Unknown command ESC &
WARNING: Unknown command ESC &
WARNING: Unknown command ESC &
WARNING: Unknown command DLE 
WARNING: Unknown command ESC &
WARNING: Unknown command ESC %
WARNING: Unknown command ESC &
WARNING: Unknown command ESC &
WARNING: Unknown command ESC &
 ⁿÇÇÇÇⁿ !°DDDD╚!"""#°°#
$ⁿ0└└0ⁿ$#%ⁿÇ%"&&
@blapid
Copy link

blapid commented Jul 26, 2020

Hi!
Thank you for this tool, it has been very useful for us.
We've followed this post[0], but as mentioned in this issue, user-defined-character-sets do not seem to print.
In addition, inline images do not seem to work (they force a new line after the previous text, and ignore additional text until a line-feed is given).
Any chance a fix is coming? 🤞
[0] https://mike42.me/blog/2018-03-how-to-print-custom-currency-symbols-on-a-receipt-printer

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

No branches or pull requests

2 participants