We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
8efbe05
@itorr 请问为啥要加 setTimeout 呢
Sorry, something went wrong.
是因为 SVG 格式图像,在几乎全部浏览器中通过 (new Image()).src = svgDataURL 形式触发加载完成事件时,其中引用的字体实际上还没有加载完成,在这个瞬间获取到的图像是字体没有正确加载的样子。
SVG
(new Image()).src = svgDataURL
这个问题我没有找到除了 setTimeout 暂时规避之外的其他解决方法,如果现在还能在手机上复现,那说明这个问题还要继续寻找修复方案
setTimeout
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: