yWorks / svg2pdf.js

A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
MIT License
643 stars 96 forks source link

Chinese garbled characters #280

Closed xu-guo204 closed 6 months ago

xu-guo204 commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce See this playground.

Expected behavior I would have expected the PDF to look like so. This is in accordance to the following SVG spec.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

yGuy commented 6 months ago

https://github.com/yWorks/svg2pdf.js?tab=readme-ov-file#concerning-custom-fonts-and-non-us-ascii-characters