I am developing a software application that automatically generates and prints labels on a Zebra printer using Python and Flask. The labels are dynamically created using ZPL code. To enhance the user experience, I want to provide a PNG preview of the label on the frontend before printing. Initially, I implemented this via the Labelary API, but I later discovered that it does not support custom fonts. What would be the best approach to generate a preview image (e.g., PNG) for labels that include custom fonts? Are there any libraries or tools that can handle this? For reference, my printer is a Zebra ZD620, connected via network. Continue reading...