-
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
SVG text element with @font-face family renders with incorrect font #1709
Comments
+1 |
Also having this issue |
Submitted a pull request, to bypass this for now you can use the following:
which you call just before |
possible duplicate? #1463 |
Thanks @maximgeerinck ! Just a small addition, I was using a Google Font and I had to have the font served from the same domain as everything else...getting the font directly from google produced the same output as before even with your solution. |
Please follow the general troubleshooting steps first:
Bug reports:
When a font-face is defined in CSS and applied to an SVG text element it renders correctly within the browser but is ignored by html2canvas when creating an image. This is demonstrated in the following fiddle.
https://jsfiddle.net/y937mxnv/
Specifications:
The text was updated successfully, but these errors were encountered: