How to convert SVG text element with @font-face to canvas using html2canvas.js?
问题 I'm trying to use html2canvas.js (https://html2canvas.hertzen.com/) to take screenshots with JavaScript. However, I have a problem when the page contains SVG text elements. As you can see on the screenshots below, the text element is duplicated (and only one of the copies keep the right font family). Original body Canvas copy Here is my code HTML <svg width="600" height="200" style="background-color:lightblue;"> <text transform="translate(100, 100)" style="font-size:60px; font-family: 'Oswald