Font Not Displaying Correctly #2927
ryanatearth
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All issues I have found with this library I have been able to create a workaround, except for this one. I have an element that is using an outside font-family. When the image is rendered the font is misplaced, and it should be centered in the element. The element itself is postiioned absolutely and has padding around to make the text look centered. When I take away the font family that is loaded via css rules, then it looks ok.
Does html2canvas have issues with displaying certain fonts correctly? Here is an example of the misplaces font:
The really weird issue is that if I then call the function that generates the image manually in the development console, then the font is displayed correctly.
I have been troubleshooting this for days, and can not figure out what could be the issue.
Any advice and hints would be greatly appreciated.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions