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

Is there a way I can prevent "fontSize" from being included into the generated css file #210

Open
MikeSav opened this issue Aug 9, 2023 · 3 comments

Comments

@MikeSav
Copy link

MikeSav commented Aug 9, 2023

I was wondering if it was possible to omit or prevent the fontSize / font-size being included in the generated css file. A workaround is for me to set this value as "revert" in my package.json but this isn't perfect. Is it possible to make this optional or does such functionality already exist?

"svgtofont": {
    "svgicons2svgfont": {
      "fontHeight": 9000,
      "normalize": true,
      "centerHorizontally": true
    },
    "css": {
      "fontSize": "revert"
    },
    "classNamePrefix": "mike-font",
    "fontName": "mike-icon-font",
    "outSVGReact": false
  },
@jaywcjlove
Copy link
Owner

@MikeSav Upgrade v4.0.0

@jaywcjlove
Copy link
Owner

"svgtofont": {
  "svgicons2svgfont": {
    "fontHeight": 9000,
    "normalize": true,
    "centerHorizontally": true
  },
  "css": {
-    "fontSize": "revert"
+    "fontSize": false
  },
  "classNamePrefix": "mike-font",
  "fontName": "mike-icon-font",
  "outSVGReact": false
},

@MikeSav
Copy link
Author

MikeSav commented Aug 11, 2023

Wow! That was quick! Thanks!

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

2 participants