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

生成的图标变形 #9

Open
yingtianlee opened this issue Mar 19, 2019 · 3 comments
Open

生成的图标变形 #9

yingtianlee opened this issue Mar 19, 2019 · 3 comments

Comments

@yingtianlee
Copy link

生成的字体图标会变形,svg是正常的
生成的字体:
image
svg:
image

@yingtianlee
Copy link
Author

image
这个是配置

@jaywcjlove
Copy link
Owner

jaywcjlove commented Mar 19, 2019

@yingtianlee 图标尺寸 默认 24px 你试一试

如果你自定义尺寸可以了解一下 svgicons2svgfont 的API

@linbaijin
Copy link

linbaijin commented Jul 28, 2022

@jaywcjlove 我发现我公司项目中生成的图标也会失真,目前我与同事发现最佳的解决办法是设置svgicons2svgfont.fontHeight为svg图标width、height的10倍
image
image

指定svgicons2svgfont.fontHeight前:
image
指定svgicons2svgfont.fontHeight后:
image

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

3 participants