yWorks/svg2pdf.js

minus sign in the svg text doesn't get recognised

git-ashish opened this issue · 1 comments

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!

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