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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions build/cupertino_generated_icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2085,9 +2085,7 @@
/// This is the same icon as [create_solid] which is available in cupertino_icons 0.1.3.
static const IconData square_pencil = IconData(0xf417, fontFamily: iconFont, fontPackage: iconFontPackage);
/// <i class='cupertino-icons md-36'>square_pencil_fill</i> &#x2014; Cupertino icon named "square_pencil_fill". Available on cupertino_icons package 1.0.0+ only.
/// This is the same icon as [create] which is available in cupertino_icons 0.1.3.
/// This is the same icon as [create_solid] which is available in cupertino_icons 0.1.3.
static const IconData square_pencil_fill = IconData(0xf417, fontFamily: iconFont, fontPackage: iconFontPackage);
static const IconData square_pencil_fill = IconData(0xf418, fontFamily: iconFont, fontPackage: iconFontPackage);
/// <i class='cupertino-icons md-36'>square_righthalf_fill</i> &#x2014; Cupertino icon named "square_righthalf_fill". Available on cupertino_icons package 1.0.0+ only.
static const IconData square_righthalf_fill = IconData(0xf80e, fontFamily: iconFont, fontPackage: iconFontPackage);
/// <i class='cupertino-icons md-36'>square_split_1x2</i> &#x2014; Cupertino icon named "square_split_1x2". Available on cupertino_icons package 1.0.0+ only.
Expand Down
245 changes: 126 additions & 119 deletions build/existing_map.py
Original file line number Diff line number Diff line change
@@ -1,123 +1,130 @@
mapped_codepoints = {
"square_arrow_up": (0xf4ca, 0xf220),
"square_arrow_up_fill": (0xf4cb),
"book": (0xf3e7),
"book_fill": (0xf3e8),
"bookmark": (0xf3e9),
"bookmark_fill": (0xf3ea),
"info_circle": (0xf44c),
"arrowshape_turn_up_left": (0xf4c6),
"chat_bubble": (0xf3fb),
"person_crop_circle": (0xf419),
"plus_circle": (0xf48a),
"minus_circle": (0xf463),
"flag": (0xf42c),
"search": (0xf4a5),
"checkmark": (0xf3fd),
"checkmark_circle": (0xf3fe),
"checkmark_circle_fill": (0xf3ff),
"circle": (0xf401),
"circle_fill": (0xf400),
"chevron_left": (0xf3d2),
"chevron_right": (0xf3d3),
"chevron_back": (0xf3cf),
"chevron_forward": (0xf3d1),
"house": (0xf447),
"car": (0xf36f),
"cart": (0xf3f7),
"ellipsis": (0xf46a),
"phone": (0xf4b8),
"phone_fill": (0xf4b9),
"arrow_down": (0xf35d),
"arrow_up": (0xf366),
"battery_100": (0xf113, 0xf111, 0xf114),
"battery_0": (0xf112),
"battery_25": (0xf115),
"bluetooth": (0xf116),
"arrow_counterclockwise": (0xf21c),
"arrowshape_turn_up_left_2": (0xf21d),
"arrowshape_turn_up_left_2_fill": (0xf21e),
"shuffle": (0xf4a9, 0xf4a8, 0xf221),
"camera": (0xf3f5),
"camera_fill": (0xf3f6),
"videocam": (0xf4cc),
"videocam_fill": (0xf4cd),
"camera_rotate": (0xf49e),
"camera_rotate_fill": (0xf49f),
"rectangle_stack": (0xf3c9),
"rectangle_stack_fill": (0xf3ca),
"folder": (0xf434, 0xf38a),
"folder_fill": (0xf435),
"trash": (0xf4c4, 0xf37f),
"trash_fill": (0xf4c5),
"pencil": (0xf37e, 0xf2bf),
"square_pencil": (0xf417),
"square_pencil_fill": (0xf417),
"arrow_clockwise": (0xf49a, 0xf49d, 0xf3a8),
"arrow_clockwise_circle": (0xf49b),
"arrow_clockwise_circle_fill": (0xf49c),
"xmark": (0xf404, 0xf2d7),
"xmark_circle": (0xf405),
"xmark_circle_fill": (0xf36e, 0xf406),
"plus": (0xf489),
"plus_circle": (0xf48a),
"plus_circle_fill": (0xf48b),
"gear_alt": (0xf43c, 0xf2f7),
"gear_alt_fill": (0xf43d),
"gear": (0xf411, 0xf412),
"music_note": (0xf46b),
"music_note_2": (0xf46c),
"play": (0xf487),
"play_fill": (0xf488),
"pause": (0xf477),
"pause_fill": (0xf478),
"infinite": (0xf449, 0xf44a),
"speaker_1_fill": (0xf3b7),
"speaker_fill": (0xf3b8),
"speaker_slash_fill": (0xf3b9),
"speaker_3_fill": (0xf3ba),
"arrow_up_left_arrow_down_right": (0xf386),
"arrow_down_right_arrow_up_left": (0xf37d),
"mic_slash": (0xf45f),
"mic": (0xf460),
"mic_fill": (0xf461),
"clock": (0xf402, 0xf4be),
"clock_fill": (0xf403, 0xf4bf),
"lock": (0xf4c8),
"lock_fill": (0xf4c9),
"eye": (0xf424),
"eye_fill": (0xf425),
"person": (0xf47d),
"person_fill": (0xf47e),
"person_badge_plus": (0xf47f),
"person_badge_plus_fill": (0xf480),
"person_3": (0xf47b),
"person_3_fill": (0xf47c),
"envelope": (0xf422),
"envelope_fill": (0xf423),
"placemark": (0xf455),
"placemark_fill": (0xf456),
"tag": (0xf48c, 0xf48e),
"tag_fill": (0xf48d, 0xf48f),
"bus": (0xf36d),
"car_fill": (0xf36f),
"car_detailed": (0xf2c1),
"train_style_one": (0xf3af),
"train_style_two": (0xf3b4),
"paw": (0xf47a, 0xf479),
"gamecontroller": (0xf43a),
"gamecontroller_fill": (0xf43b),
"lab_flask": (0xf430),
"lab_flask_solid": (0xf431),
"heart": (0xf442),
"heart_fill": (0xf443),
"bell": (0xf3e1),
"bell_fill": (0xf3e2),
"news": (0xf471),
"news_solid": (0xf472),
"sun_max": (0xf4b6),
"sun_max_fill": (0xf4b7),
},
"square_arrow_up": [0xf4ca, 0xf220],
"square_arrow_up_fill": [0xf4cb],
"book": [0xf3e7],
"book_fill": [0xf3e8],
"bookmark": [0xf3e9],
"bookmark_fill": [0xf3ea],
"info_circle": [0xf44c],
"arrowshape_turn_up_left": [0xf4c6],
"chat_bubble": [0xf3fb],
"person_crop_circle": [0xf419],
"plus_circle": [0xf48a],
"minus_circle": [0xf463],
"flag": [0xf42c],
"search": [0xf4a5],
"checkmark": [0xf3fd],
"checkmark_circle": [0xf3fe],
"checkmark_circle_fill": [0xf3ff],
"circle": [0xf401],
"circle_fill": [0xf400],
"chevron_left": [0xf3d2],
"chevron_right": [0xf3d3],
"chevron_back": [0xf3cf],
"chevron_forward": [0xf3d1],
"house": [0xf447],
"car": [0xf36f],
"cart": [0xf3f7],
"ellipsis": [0xf46a],
"phone": [0xf4b8],
"phone_fill": [0xf4b9],
"arrow_down": [0xf35d],
"arrow_up": [0xf366],
"battery_100": [0xf113, 0xf111, 0xf114],
"battery_0": [0xf112],
"battery_25": [0xf115],
"bluetooth": [0xf116],
"arrow_counterclockwise": [0xf21c],
"arrowshape_turn_up_left_2": [0xf21d],
"arrowshape_turn_up_left_2_fill": [0xf21e],
"shuffle": [0xf4a9, 0xf4a8, 0xf221],
"camera": [0xf3f5],
"camera_fill": [0xf3f6],
"videocam": [0xf4cc],
"videocam_fill": [0xf4cd],
"camera_rotate": [0xf49e],
"camera_rotate_fill": [0xf49f],
"rectangle_stack": [0xf3c9],
"rectangle_stack_fill": [0xf3ca],
"folder": [0xf434, 0xf38a],
"folder_fill": [0xf435],
"trash": [0xf4c4, 0xf37f],
"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

"arrow_clockwise": [0xf49a, 0xf49d, 0xf3a8],
"arrow_clockwise_circle": [0xf49b],
"arrow_clockwise_circle_fill": [0xf49c],
"xmark": [0xf404, 0xf2d7],
"xmark_circle": [0xf405],
"xmark_circle_fill": [0xf36e, 0xf406],
"plus": [0xf489],
"plus_circle": [0xf48a],
"plus_circle_fill": [0xf48b],
"gear_alt": [0xf43c, 0xf2f7],
"gear_alt_fill": [0xf43d],
"gear": [0xf411, 0xf412],
"music_note": [0xf46b],
"music_note_2": [0xf46c],
"play": [0xf487],
"play_fill": [0xf488],
"pause": [0xf477],
"pause_fill": [0xf478],
"infinite": [0xf449, 0xf44a],
"speaker_1_fill": [0xf3b7],
"speaker_fill": [0xf3b8],
"speaker_slash_fill": [0xf3b9],
"speaker_3_fill": [0xf3ba],
"arrow_up_left_arrow_down_right": [0xf386],
"arrow_down_right_arrow_up_left": [0xf37d],
"mic_slash": [0xf45f],
"mic": [0xf460],
"mic_fill": [0xf461],
"clock": [0xf402, 0xf4be],
"clock_fill": [0xf403, 0xf4bf],
"lock": [0xf4c8],
"lock_fill": [0xf4c9],
"eye": [0xf424],
"eye_fill": [0xf425],
"person": [0xf47d],
"person_fill": [0xf47e],
"person_badge_plus": [0xf47f],
"person_badge_plus_fill": [0xf480],
"person_3": [0xf47b],
"person_3_fill": [0xf47c],
"envelope": [0xf422],
"envelope_fill": [0xf423],
"placemark": [0xf455],
"placemark_fill": [0xf456],
"tag": [0xf48c, 0xf48e],
"tag_fill": [0xf48d, 0xf48f],
"bus": [0xf36d],
"car_detailed": [0xf2c1],
"train_style_one": [0xf3af],
"train_style_two": [0xf3b4],
"paw": [0xf47a, 0xf479],
"gamecontroller": [0xf43a],
"gamecontroller_fill": [0xf43b],
"lab_flask": [0xf430],
"lab_flask_solid": [0xf431],
"heart": [0xf442],
"heart_fill": [0xf443],
"bell": [0xf3e1],
"bell_fill": [0xf3e2],
"news": [0xf471],
"news_solid": [0xf472],
"sun_max": [0xf4b6],
"sun_max_fill": [0xf4b7],
}

# A list of glyphs that are bound to more than one dart names,
# for example, `CupertinoIcons.car_fill` refers to the same glyph
# as `CupertinoIcons.car`. The "main" name, and only the "main" name,
# must correspond to a svg file in the "src" directory.
aliases = {
"car": ["car_fill"],
}

old_names = {
"left_chevron": 0xf3d2,
Expand Down
Loading