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

Font awesome do not render. #10

Closed
hmendezm opened this issue Nov 14, 2020 · 1 comment
Closed

Font awesome do not render. #10

hmendezm opened this issue Nov 14, 2020 · 1 comment

Comments

@hmendezm
Copy link

Hey guys, nice work in this capture. it is really helpful. I have an SVG with font awesome. And everything in the SVG is rendered except the font awesome. I get a rectangle instead.

See the example below
https://stackblitz.com/edit/ngx-capture-example-s5upqj?file=package.json

Do you have any idea about how I can make this to work?

Best
hmendez

@Wanchai
Copy link
Owner

Wanchai commented Nov 30, 2020

Thank you.

What you are experiencing is a limitation of html2canvas:

Limitations

All the images that the script uses need to reside under the same origin for it to be able to read them without the assistance of a proxy. Similarly, if you have other canvas elements on the page, which have been tainted with cross-origin content, they will become dirty and no longer readable by html2canvas.

You load FA from another server. Copy the needed files on your project and it will be OK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants