Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support numerical values for font-weight attribute #128

Closed
HackbrettXXX opened this issue Jan 21, 2020 · 2 comments · Fixed by #181
Closed

Support numerical values for font-weight attribute #128

HackbrettXXX opened this issue Jan 21, 2020 · 2 comments · Fixed by #181
Labels
enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request.

Comments

@HackbrettXXX
Copy link
Member

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 HackbrettXXX added enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request. labels Jan 21, 2020
@HackbrettXXX
Copy link
Member Author

Related to parallax/jsPDF#2920

@HackbrettXXX
Copy link
Member Author

Since 2.3.0 jsPDF supports numeric font weights.

@HackbrettXXX HackbrettXXX linked a pull request Sep 14, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant