iconoir-icons / iconoir

An open source icons library with 1500+ icons, supporting React, React Native, Flutter, Vue, Figma, and Framer.
https://iconoir.com
MIT License
3.88k stars 169 forks source link

[FEAT] Consider using fonts instead of raw/embedded SVGs #431

Open sadespresso opened 6 months ago

sadespresso commented 6 months ago

Is your feature request related to a problem? Please describe. It would be really nice to have Iconoir fonts rather than CSS with embedded SVGs, or multiple Dart classes.

Generally, fonts have smaller file size, and is the norm for quite many popular fonts (i.e., Material Symbols, FontAwesome)

Describe the solution you'd like Generate a font, and generate CSS, and Dart classes (one like Icons) with codepoints.

You can generate fonts from SVG files with tools like fantasticon.

It's just another way to do the thing, and this issue is a suggestion 😅

Upvote & Fund

Fund with Polar

sadespresso commented 6 months ago

So I have generated fonts using fantasticon. Had to run it thru svg-fixer to convert strokes to fills.

If this aligns with the direction of the project, I can make PR and write generators for all the packages.

See latest code at: https://github.com/sadespresso/iconoir