Closed scottctr closed 5 years ago
I guess you forgot to attach the JavaScript. Specifically whether you are using custom fonts would be of interest, here, since usually text like this indicates a problem with the embedded custom fonts. Also the SVG doesn't really look like it would produce the image as the text reads "88%" in the SVG. Ideally provide a code-pen or jsfiddle like this one: https://jsfiddle.net/highcharts/mae0j8c5/ - that would be the ideal repro for others to investigate. Thanks!
I've attached a sample app. You're correct that it only happens when using an embedded font. This is included in the sample app.
There are up to 3 sets of text in each of my nodes. All 3 render as expected on Chrome and Edge, but on IE, only the top set of text is rendered correctly.
The issue seems to be the polyfill for Map
. It does not work properly with Object.keys()
:
Object.keys(new Map())
returns ["_t", "_i", "_f", "_l", "_s"]
while it should return an empty arrray. The polyfill should define these properties with enumerable: false
.
Describe the bug Node text is garbled on IE 11. (see screenshots and SVG below)
svg2pdf.js: 1.3.4 jspdf: 2.0.2
To Reproduce
With the following SVG and JavaScript code Pasted at bottom to prevent corrupting post.
I get this result
Expected behavior I would have expected the PDF to look like so.
Desktop (please complete the following information):
SVG