porrey / Virtual-ZPL-Printer

An ethernet based virtual Zebra Label Printer that can be used to test applications that produce bar code labels.
GNU Lesser General Public License v3.0
200 stars 42 forks source link

Custom fonts usage and save to PNG #41

Closed valimaties closed 8 months ago

valimaties commented 1 year ago

Is your feature request related to a problem? Please describe. I have a Zebra ZD421 printer in which I have installed (downloaded) and mapped some custom fonts:

^CWG,E:DIN000.FNT ^FX Dinot Bold 10
^CWH,E:DIN001.FNT ^FX Dinot Regular 7
^CWI,E:DIN002.FNT ^FX Dinot Bold 14
^CWJ,E:DIN003.FNT ^FX Dinot Light 8
^CWK,E:DIN004.FNT ^FX Dinot 7
^CWL,E:DIN005.FNT ^FX Dinot Bold 9
^CWM,E:DIN006.FNT ^FX Dinot Bold 7

Describe the solution you'd like I want to preview my label using the fonts installed in my printer, all my labels will use only those fonts, not any of the default fonts from my Zebra printer. Also, my goal is to save the label in png to be able to display in my form of my application, not externally.

Describe alternatives you've considered If there is any, please advise.

porrey commented 10 months ago

Since this is using a remote API, I have no way of loading fonts. Please check out https://labelary.com/viewer.html, https://labelary.com/docs.html, and https://labelary.com/faq.html to see what is possible.

porrey commented 9 months ago

Labelary API does support custom TruType fonts. This feature will be added in a future release.