-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Issue rendering Font Awesome 5 in Chrome #1881
Comments
Same issue here. Any updates on this one? Thank you |
Same issue. |
Exactly the same issue. Any updates so far? Thanks. |
I did some digging around and think this is down to the number within the CSS font family value (e.g. "Font Awesome 5 Free"). This causes an issue in the canvas renderer, since it uses the short-hand CSS syntax for setting the canvas context font. Wrapping the font names in quotes fixed the issue for me. Submitted a PR for it. |
hey, I have the same issue, I tried many solutions that exist in Github reported the issue but it still the same. any practical solution? |
@ghafooridev use this PR (thank you @grahamkane) |
For those having issues with this, also try to remove the spaces from your all.min.css file in Font awesome. Your classnames should be this, for example My class names were in quotes and still not working, but after changing them to be without space my icons started rendering in html2canvas. |
same issue for me? |
Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Please follow the general troubleshooting steps first:
Bug reports:
I have an issue with rendering of font awesome 5 icons, they will only show up as squares. I'm using Google Chrome and Font Awesome 5 Pro.
Specifications:
The text was updated successfully, but these errors were encountered: