-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
"trash_fill": [0xf4c5], | ||
"pencil": [0xf37e, 0xf2bf], | ||
"square_pencil": [0xf417], | ||
"square_pencil_fill": [0xf418], |
There was a problem hiding this comment.
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
…rsion to 1.08 (#6520) See this PR for the font change: xster/framework7-icons#2
@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? |
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. |
…rsion to 1.08 (flutter#6520) See this PR for the font change: xster/framework7-icons#2
…rsion to 1.08 (flutter#6520) See this PR for the font change: xster/framework7-icons#2
This patch:
Removes ligature tablesRemoves the glyph names from the post tableLooks 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.
square_pencil_fill
(create_solid
) were mapped to the same glyph assquare_pencil
(create
) ([cupertino_icons] Icons for create and create_solid from CupertinoIcons are the same (and buggy) flutter/flutter#106065). The former is mapped to0xf418
in the patch.car
andcar_fill
were using different svgs, despite the documentation claim them being the same icon ([Cupertino icons]Glyphs for car and car_fill from CupertinoIcons are broken flutter/flutter#98029). The patch treatscar_fill
as an alias ofcar
to match the documentation.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):