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
654 stars 100 forks source link

Support numerical values for font-weight attribute #128

Closed HackbrettXXX closed 2 years ago

HackbrettXXX commented 4 years ago

See #82:

Yes. This is mainly because jsPDF only supports 'normal', 'bold', etc.. With custom fonts and some tricking, we might be able to support other font styles, though. When adding a font to jsPDF, you can also specify the font-style, which in theory, could also be a numeric value. Needs to be tested though. Also, svg2pdf needs to support numeric values. Created a new issue.

HackbrettXXX commented 3 years ago

Related to https://github.com/MrRio/jsPDF/issues/2920

HackbrettXXX commented 3 years ago

Since 2.3.0 jsPDF supports numeric font weights.