-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
Indian language tamil font is not printing #517
Comments
Hi, printing non-english characters depends mainly of your printer support. Advice: Try to convert your text as image, then print the image. It makes your print more device independant. |
It's because app probably does text-to-image convert before printing. Most chinese printers has fonts supporting english and (of course) chinese characters. To print any another character you'll have to pass text in canvas to a Bitmap, then print the Bitmap. |
You can try with this code. It puts text on a StaticLayout and put it on a canvas to return a Bitmap.
StaticLayout was my choice because we could print with HTML tags too, in that case replace The Bitmap has max width of 385px but you can put more text, in this case text will be multilined. In my app:
It will print your text with size 24 and bold typeface. Feel free to test it and improve it to your needs. EDIT: Code was extracted from a working app of mine, removed unnecesary code. |
@nrs1022 Thank you very much for the help. It worked as i expected. |
I'm trying to print "தமிழ்" Font in HOP-E801 thermal printer but it is printing random characters instead of tamil.
I get to know that Tamil is supported at page 68 from epson-biz. Also i tried with charsets like "UTF-8", "ISO-8859-1", "CP864".
No luck so far. It would be great if someone can help me with this issue. Thanks in advance.
The text was updated successfully, but these errors were encountered: