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

Proposal - Use Font glyphs #4

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

Otacon
Copy link

@Otacon Otacon commented Aug 19, 2023

WARNING: This PR cannot be merged as it is, since the Glyphs are not rendered correctly.

The reason for this PR is to discuss whether we would like to migrate from SVGs to Font Glyphs.
PROs:

  • Smaller footprint (215KBs vs 2.3MBs);
  • Faster loading times;
  • In line with other similar libraries such as Material, Cupertino, Fluent;

CONs:

  • Manual maintenance of the icons and transformation SVG -> Font;
  • Missing colors when rendering fonts!

I've modified the example code to render both the SVG and the Font version side-by side. I've also attached a selection.json file that can be imported in the IcoMoon App to manipulate the font and generate the relative .dart file.

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

Successfully merging this pull request may close these issues.

1 participant