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
646 stars 96 forks source link

minus sign in the svg text doesn't get recognised #194

Closed git-ashish closed 2 years ago

git-ashish commented 2 years ago

Describe the bug The SVG has axis tick labels which are numeric values with minus sign (not hyphen). This somehow doesn't get recognised and the pdf is not able to render the text values as expected.

To Reproduce Steps to reproduce the behavior:

  1. See this playground

Expected behavior I would have expected the PDF to look like so. image

Any pointers would be helpful. Thanks!

git-ashish commented 2 years ago

I've circumvented this by adding a custom font like OpenSans to the PDF which supports the − (minus) UTF symbol