-
Notifications
You must be signed in to change notification settings - Fork 16
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
Process only svg files from meta.json #6
Comments
I'm wondering if there is a nice way to do this without editing the meta.json as that file is a headache to edit manually. Something like... We could support |
Maybe with a {
"fontName": "Material Design Icons Custom",
"fontFamily": "materialdesigniconscustom",
"include": [
"account",
"F0001"
]
} Note: capital letters we'll assume it's a codepoint and I guess |
Both versions are great enough, my personal preference is the first one (command line), but I am worried about command line length limit (specially on Windows), so json file config should be probably more robust for this. |
This would be an amazing hacktoberfest project. I'm going to list everything that needs to be done.
(WIP list above) |
Maybe this helps someone, what I ended up doing was
setupWebFonts.js
|
Hi, I wanted to reduce font only to my used icons, so I processed my applicaiton to find all occurence of mdi-* and then to filter out meta.json to only used icons and build my own font.
But there is some problem that all .svg files are compiled into font files
file index.js, line 314:
files: 'svg/.svg',
so i tried to use this
files: metaJson.map(icon => path.join(svgFolder,
u${icon.codepoint}-${icon.name}.svg
)),and it works!
so please consider to change it to this behaviour to allow same scenario to others.
Thank you.
Jan
The text was updated successfully, but these errors were encountered: