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

Update CupertinoIcons script and regenerate the font #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

LongCatIsLooong
Copy link

@LongCatIsLooong LongCatIsLooong commented Apr 14, 2024

This patch:

Removes ligature tables Removes the glyph names from the post table

Looks like the cheatsheet and dartdoc are still using the ligatures tech. So the ligature tables are kept.

Fix overlapping outlines

Multiple SVGs with the same file name were mapped to the same codepoint, so the SVGs were imported into the same glyph.

A few asserts were added in the script to guard against importing multiple outlines to the same glyph.

Regenerate font

This seems to fix the vertical alignment. This should fix flutter/flutter#143069. Comparison (left: old, right: new):

Screenshot 2024-04-14 at 8 23 21 PM

"trash_fill": [0xf4c5],
"pencil": [0xf37e, 0xf2bf],
"square_pencil": [0xf417],
"square_pencil_fill": [0xf418],
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is changed from 0xf417 to 0xf418

auto-submit bot pushed a commit to flutter/packages that referenced this pull request Apr 16, 2024
@jmagman
Copy link

jmagman commented Apr 16, 2024

@LongCatIsLooong @xster I didn't realize we were using scripts from https://github.com/xster. Can we move this into https://github.com/flutter/packages?

@xster
Copy link
Owner

xster commented Apr 27, 2024

oh man, I'm a bit embarrassed that it's still here. It's definitely outlived it's shelf life. I did it here because I thought these icons would live for about 2 years like the previous design. If we think these stuff will live for a while, it'd be best to move them to somewhere more suitable long term.

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.

Cupertino icons are misaligned in latest beta
3 participants