Closed eMahtab closed 6 years ago
The problem is that the modifyCss
function modifies existing CSS rules, and the above example has no CSS rules.
Currently, there's no good hook for adding CSS to the SVG. As a workaround, you can add an empty CSS rule for svg
to the HTML, then modify that rule with the modifyCss
function to change the font.
I'm open to pull requests for adding an option to append CSS rather than just transform it.
Hi @exupero , I'm trying to use the modifyCss option to specify font-family e.g. Helvetica, while downloading the element as svg. But not able to figure out how to call or specify the font-family css property in the modifyCss option.