Closed HWWWWWT closed 6 years ago
@font-face { font-family: 'Gugi'; src: url('http://test2.yunzhan365.com/resourceFiles/editor/fonts/gugi-regular-webfont.woff'); } @font-face { / AmaticSC/ font-family: 'AmaticSC'; src: url('http://test2.yunzhan365.com/resourceFiles/editor/fonts/amaticsc-regular-webfont.woff'); } .... more than 20 species!
When i use domtoimage.toPng() ,all the fontFamily files will be downloaded and the web will be unresponsive. I have to spend a lot of time to wait until it's finished.
domtoimage.toPng()
"dom-to-image": "^2.6.0", "vue": "^2.5.13",
"dom-to-image": "^2.6.0",
"vue": "^2.5.13",
Hello. Any information about that issue?
this fork version can solve it. https://github.com/MMF-FE/dom-to-image yarn add @yzfe/dom-to-image
Use case: description, code
@font-face { font-family: 'Gugi'; src: url('http://test2.yunzhan365.com/resourceFiles/editor/fonts/gugi-regular-webfont.woff'); } @font-face { / AmaticSC/ font-family: 'AmaticSC'; src: url('http://test2.yunzhan365.com/resourceFiles/editor/fonts/amaticsc-regular-webfont.woff'); } .... more than 20 species!
Expected behavior
Actual behavior (stack traces, console logs etc)
When i use
domtoimage.toPng()
,all the fontFamily files will be downloaded and the web will be unresponsive. I have to spend a lot of time to wait until it's finished.Library version
"dom-to-image": "^2.6.0",
"vue": "^2.5.13",
Browsers