-
Notifications
You must be signed in to change notification settings - Fork 561
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
skipFonts is not used to control the download of fonts #93
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Hiya! Thanks for being a part of the Antv community! 💪💯 |
Hey again! |
Using this bot to close valid issues like this is so bad.. If you want a temporary workaround for skipping fonts, you can apply this patch with patch-package: diff --git a/node_modules/html-to-image/es/index.js b/node_modules/html-to-image/es/index.js
index 5b0673d..85f9794 100644
--- a/node_modules/html-to-image/es/index.js
+++ b/node_modules/html-to-image/es/index.js
@@ -22,7 +22,6 @@ export function toSvg(domNode, options = {}) {
return __awaiter(this, void 0, void 0, function* () {
const { width, height } = getImageSize(domNode, options);
return cloneNode(domNode, options, true)
- .then((clonedNode) => embedWebFonts(clonedNode, options))
.then((clonedNode) => embedImages(clonedNode, options))
.then((clonedNode) => applyStyleWithOptions(clonedNode, options))
.then((clonedNode) => createSvgDataURL(clonedNode, width, height)); |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Problem
I am trying to convert DOM to image (PNG,JPEG,SVG), I see lots of requests for google fonts are made, you can see in the below image
I have provided the skipFonts property in options object, this would not help
skipFonts property is not used anywhere in the code, could you please update on this, Thank you
The text was updated successfully, but these errors were encountered: