JsBarcode
JsBarcode copied to clipboard
Avoid inline style in SVG
fixes #450, fixes #456, alternative to #472
I noticed that most uses of inline style (which conflict with most Content Security Policies) are unnecessary, because SVG attributes can be used instead.
fontOptions is somewhat tricky because its contents can map to different SVG attributes. I implemented matching for "bold" and "italic" (as used in the documentation).