Font options should not be written as shorthand
Open
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Font options should not be written as shorthand as this is not officially supported in SVG and is invalid in any graphic editing software: https://github.com/lindell/JsBarcode/blob/19cdeea9a03c3cd863a74d074ed8f7d66825b718/src/renderers/svg.js#L93
Happy to do a pull request as it's bugging me I cannot use it as intended 😇
Contributor guide
Research direction
Start in src/renderers/svg.js at line 93 and inspect how the font options are serialized into SVG. Check the generated SVG against the issue's compatibility concern, then verify that font options are emitted without shorthand and remain usable in graphic editing software.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100