-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Font size bigger than PrintStyle.DoubleHeight | PrintStyle.DoubleWidth #132
Comments
That's the biggest configuration you can get if you are using the native fonts in your printer. You can also check between fontA and fontB, fontA is usually bigger. However, the library is quite fast as long as you're using a solid connection to the printer, and you could easily rasterize text to an image and print that way. We have seen a LOT of feedback where people are trying to print unicode characters (chinese, japanese) and while there's a native way to do that for certain characters, if we were able to use system fonts to render to an image and then print that, it would allow a lot more use cases since it would work for any unicode characters. I'm thinking something like PrintRasterizedTextLine(someUnicodeString) would satisfy a lot of these requests, and you could add a config object that set the fontSize, fontWeight, fontStyle, etc. This would be a wonderful contribution to the lib and would help many people :) Let me know what other questions you have about this and I'd be happy to answer / help however I can. Thanks for the offer of help @djnuller 🥳 |
I have something working in my own code right now, not at all ready for this library. But is it okay to use an external library aswell? I have been using ImageSharp (still in beta) for my own code to have a working solution.
This is a bit heavy but is working for my solution. |
@djnuller ImageSharp is already a dependency of the library so this would be no issue to add to the library actually, it would not add any additional overhead. |
This allows us to print a line with a custom font, sizes and weights which resolves problems with printing text of unsupported sizes (lukevp#132) and unsupported character sets/code pages (lukevp#116) We achieve this by rendering an image with text, sized to fit the text itself and returning `byte[]` to be compatible with other commands. Fixes lukevp#132, lukevp#116
This allows us to print a line with a custom font, sizes and weights which resolves problems with printing text of unsupported sizes (lukevp#132) and unsupported character sets/code pages (lukevp#116) We achieve this by rendering an image with text, sized to fit the text itself and returning `byte[]` to be compatible with other commands. Fixes lukevp#132, lukevp#116
This allows us to print a line with a custom font, sizes and weights which resolves problems with printing text of unsupported sizes (lukevp#132) and unsupported character sets/code pages (lukevp#116) We achieve this by rendering an image with text, sized to fit the text itself and returning `byte[]` to be compatible with other commands. Fixes lukevp#132, lukevp#116
I have a use case where I would like a number (for a queue ticket) to be printet bigger than what PrintStyle.DoubleHeight | PrintStyle.DoubleWidth has to offer.
I'm not able to find anything about that in the documentation for ESC / POS (https://reference.epson-biz.com/modules/ref_escpos/index.php).
Do you know if its possible? Or can direct me to some better documentation, I would love to help out with this lib if I can.
Br
Jesper
The text was updated successfully, but these errors were encountered: