jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
538 stars 85 forks source link

Set a font size to the CSS generated? #52

Closed vitto closed 3 years ago

vitto commented 3 years ago

It would be nice to have the possibility to set the font-size on the css generated before build it, this would avoid me to change it manually after the build.

So instead to have 16px every time:

.iconfont {
  font-family: "svgtofont-iconfont" !important;
  font-size: 16px;
  ...
}

Have the possibility to set a custom font-size:

.iconfont {
  font-family: "svgtofont-iconfont" !important;
  font-size: 24px; /* material icons like font-size */
  ...
}
jaywcjlove commented 3 years ago

@vitto Upgrade svgtofont@3.4.0

vitto commented 3 years ago

Thanks a lot