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

FontAwesome: Reorder some glyphs #1596

Merged
merged 10 commits into from
Apr 10, 2024
Merged
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
56 changes: 28 additions & 28 deletions bin/scripts/lib/i_fa.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Font Awesome (version 6.5.1, 1474 icons, 343 aliases)
# Font Awesome (version 6.5.1, 1475 icons, 342 aliases)
# Does not include all icons of the release
# Codepoints: ED00-F2FF with gaps
# Nerd Fonts Version: 3.2.0
Expand All @@ -12,7 +12,7 @@ i='' i_fa_microphone_lines=$i
i='' i_fa_microsoft=$i
i='' i_fa_mix=$i
i='' i_fa_mizuni=$i
i='' i_fa_mobile_screen_button=$i
i='' i_fa_mobile_button=$i
i='' i_fa_mobile=$i
i='' i_fa_mobile_screen=$i
i='' i_fa_monero=$i
Expand Down Expand Up @@ -50,7 +50,7 @@ i='' i_fa_steam_symbol=$i
i='' i_fa_sticker_mule=$i
i='' i_fa_studiovinari=$i
i='' i_fa_supple=$i
i='' i_fa_tablet_screen_button=$i
i='' i_fa_tablet_button=$i
i='' i_fa_tablet=$i
i='' i_fa_gauge_high=$i
i='' i_fa_ticket_simple=$i
Expand Down Expand Up @@ -261,18 +261,6 @@ i='' i_fa_greater_than_equal=$i
i='' i_fa_helicopter=$i
i='' i_fa_infinity=$i
i='' i_fa_kiwi_bird=$i
i='' i_fa_less_than=$i
i='' i_fa_less_than_equal=$i
i='' i_fa_memory=$i
i='' i_fa_microphone_lines_slash=$i
i='' i_fa_money_bill_wave=$i
i='' i_fa_money_bill_1_wave=$i
i='' i_fa_money_check=$i
i='' i_fa_money_check_dollar=$i
i='' i_fa_not_equal=$i
i='' i_fa_palette=$i
i='' i_fa_square_parking=$i
i='' i_fa_diagram_project=$i
i='' i_fa_receipt=$i
i='' i_fa_robot=$i
i='' i_fa_ruler=$i
Expand Down Expand Up @@ -711,6 +699,19 @@ i='' i_fa_swift=$i
i='' i_fa_umbraco=$i
i='' i_fa_walkie_talkie=$i
i='' i_fa_caravan=$i
i='' i_fa_avianex=$i
i='' i_fa_less_than=$i
i='' i_fa_less_than_equal=$i
i='' i_fa_memory=$i
i='' i_fa_microphone_lines_slash=$i
i='' i_fa_money_bill_wave=$i
i='' i_fa_money_bill_1_wave=$i
i='' i_fa_money_check=$i
i='' i_fa_money_check_dollar=$i
i='' i_fa_not_equal=$i
i='' i_fa_palette=$i
i='' i_fa_square_parking=$i
i='' i_fa_diagram_project=$i
i='' i_fa_martini_glass_empty=$i
i_fa_glass=$i
i='' i_fa_music=$i
Expand Down Expand Up @@ -835,18 +836,18 @@ i='' i_fa_circle_plus=$i
i_fa_plus_circle=$i
i='' i_fa_circle_minus=$i
i_fa_minus_circle=$i
i='' i_fa_circle_xmark=$i
i='' i_fa_remove_sign=$i
i_fa_times_circle=$i
i='' i_fa_circle_check=$i
i='' i_fa_ok_sign=$i
i_fa_check_circle=$i
i='' i_fa_circle_question=$i
i_fa_question_circle=$i
i='' i_fa_circle_info=$i
i_fa_info_circle=$i
i='' i_fa_crosshairs=$i
i='' i_fa_right_long=$i
i='' i_fa_circle_xmark=$i
i_fa_times_circle_o=$i
i='' i_fa_up_long=$i
i='' i_fa_circle_check=$i
i_fa_check_circle_o=$i
i='' i_fa_ban=$i
i='' i_fa_file_pen=$i
Expand Down Expand Up @@ -1038,9 +1039,8 @@ i='' i_fa_gavel=$i
i='' i_fa_gauge_simple_high=$i
i_fa_dashboard=$i
i_fa_tachometer=$i
i='' i_fa_comments_o=$i
i_fa_comment_o=$i
i='' i_fa_avianex=$i
i='' i_fa_comment_o=$i
i='' i_fa_comments_o=$i
i='' i_fa_bolt=$i
i_fa_flash=$i
i='' i_fa_sitemap=$i
Expand Down Expand Up @@ -1096,8 +1096,8 @@ i='' i_fa_angle_up=$i
i='' i_fa_angle_down=$i
i='' i_fa_desktop=$i
i='' i_fa_laptop=$i
i='' i_fa_tablet_button=$i
i='' i_fa_mobile_button=$i
i='' i_fa_tablet_screen_button=$i
i='' i_fa_mobile_screen_button=$i
i_fa_mobile_phone=$i
i='' i_fa_circle_o=$i
i='' i_fa_quote_left=$i
Expand Down Expand Up @@ -1247,11 +1247,11 @@ i='' i_fa_thumbs_up=$i
i='' i_fa_thumbs_down=$i
i='' i_fa_square_youtube=$i
i_fa_youtube_square=$i
i='' i_fa_youtube=$i
i='' i_fa_cloudsmith=$i
i='' i_fa_xing=$i
i='' i_fa_square_xing=$i
i_fa_xing_square=$i
i='' i_fa_cloudsmith=$i
i='' i_fa_youtube=$i
i_fa_youtube_play=$i
i='' i_fa_dropbox=$i
i='' i_fa_stack_overflow=$i
Expand Down Expand Up @@ -1505,7 +1505,7 @@ i='' i_fa_simplybuilt=$i
i='' i_fa_skyatlas=$i
i='' i_fa_cart_plus=$i
i='' i_fa_cart_arrow_down=$i
i='' i_fa_diamond=$i
i='' i_fa_gem=$i
i='' i_fa_ship=$i
i='' i_fa_user_secret=$i
i='' i_fa_motorcycle=$i
Expand Down Expand Up @@ -1685,7 +1685,7 @@ i='' i_fa_question_circle_o=$i
i='' i_fa_person_walking_with_cane=$i
i_fa_blind=$i
i='' i_fa_audio_description=$i
i='' i_fa_gem=$i
i='' i_fa_diamond=$i
i='' i_fa_phone_volume=$i
i_fa_volume_control_phone=$i
i='' i_fa_braille=$i
Expand Down
Binary file modified src/glyphs/font-awesome/FontAwesome.otf
Binary file not shown.
7 changes: 3 additions & 4 deletions src/glyphs/font-awesome/generate
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def addIcon(codepoint, name, filename):
glyph = font.createChar(codepoint, name)
glyph.importOutlines(filename)
xmin, ymin, xmax, ymax = glyph.boundingBox()
glyph.width = int(xmax + xmin) # make meft and right bearings equal
glyph.width = int(xmax + xmin) # make left and right bearings equal
glyph.manualHints = True

def createGlyphInfo(icon_datasets, filepathname, into):
Expand Down Expand Up @@ -71,7 +71,6 @@ font = fontforge.font()
font.fontname = 'FA-NerdFont-Regular'
font.fullname = 'FA Nerd Font Regular'
font.familyname = 'FA Nerd Font'
font.em = 2048
font.ascent = 1000
font.descent = 200
font.encoding = 'UnicodeFull'
Expand All @@ -94,8 +93,8 @@ for _, codepoint, file, *names in mapping:
num_icons = len(mapping)

print('Generating {} with {} glyphs'.format(fontfile, num_icons))
font.ascent = 1100
font.descent = 300
font.ascent = 1000
font.descent = 200
font.generate(os.path.join(fontdir, fontfile), flags=("no-FFTM-table",))

codepoints = [ int(p, 16) for _, p, *_ in mapping ]
Expand Down
62 changes: 32 additions & 30 deletions src/glyphs/font-awesome/mapping
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ F3C9 ED03 solid/microphone-lines.svg microphone_lines
F3CA ED04 brands/microsoft.svg microsoft
F3CB ED05 brands/mix.svg mix
F3CC ED06 brands/mizuni.svg mizuni
F3CD ED07 solid/mobile-screen-button.svg mobile_screen_button
F10B ED07 solid/mobile-button.svg mobile_button
F3CE ED08 solid/mobile.svg mobile
F3CF ED09 solid/mobile-screen.svg mobile_screen
F3D0 ED0A brands/monero.svg monero
Expand Down Expand Up @@ -47,7 +47,7 @@ F3F6 ED29 brands/steam-symbol.svg steam_symbol
F3F7 ED2A brands/sticker-mule.svg sticker_mule
F3F8 ED2B brands/studiovinari.svg studiovinari
F3F9 ED2C brands/supple.svg supple
F3FA ED2D solid/tablet-screen-button.svg tablet_screen_button
F10A ED2D solid/tablet-button.svg tablet_button
F3FB ED2E solid/tablet.svg tablet
F3FD ED2F solid/gauge-high.svg gauge_high
F3FF ED30 solid/ticket-simple.svg ticket_simple
Expand Down Expand Up @@ -258,18 +258,6 @@ F532 EDFC solid/greater-than-equal.svg greater_than_equal
F533 EDFD solid/helicopter.svg helicopter
F534 EDFE solid/infinity.svg infinity
F535 EDFF solid/kiwi-bird.svg kiwi_bird
F536 EE00 solid/less-than.svg less_than
F537 EE01 solid/less-than-equal.svg less_than_equal
F538 EE02 solid/memory.svg memory
F539 EE03 solid/microphone-lines-slash.svg microphone_lines_slash
F53A EE04 solid/money-bill-wave.svg money_bill_wave
F53B EE05 solid/money-bill-1-wave.svg money_bill_1_wave
F53C EE06 solid/money-check.svg money_check
F53D EE07 solid/money-check-dollar.svg money_check_dollar
F53E EE08 solid/not-equal.svg not_equal
F53F EE09 solid/palette.svg palette
F540 EE0A solid/square-parking.svg square_parking
F542 EE0B solid/diagram-project.svg diagram_project
F543 EE0C solid/receipt.svg receipt
F544 EE0D solid/robot.svg robot
F545 EE0E solid/ruler.svg ruler
Expand Down Expand Up @@ -708,6 +696,19 @@ F8E1 EFBE brands/swift.svg swift
F8E8 EFBF brands/umbraco.svg umbraco
F8EF EFC0 solid/walkie-talkie.svg walkie_talkie
F8FF EFC1 solid/caravan.svg caravan
F374 EFC2 brands/avianex.svg avianex
F536 EFC3 solid/less-than.svg less_than
F537 EFC4 solid/less-than-equal.svg less_than_equal
F538 EFC5 solid/memory.svg memory
F539 EFC6 solid/microphone-lines-slash.svg microphone_lines_slash
F53A EFC7 solid/money-bill-wave.svg money_bill_wave
F53B EFC8 solid/money-bill-1-wave.svg money_bill_1_wave
F53C EFC9 solid/money-check.svg money_check
F53D EFCA solid/money-check-dollar.svg money_check_dollar
F53E EFCB solid/not-equal.svg not_equal
F53F EFCC solid/palette.svg palette
F540 EFCD solid/square-parking.svg square_parking
F542 EFCE solid/diagram-project.svg diagram_project
F000 F000 solid/martini-glass-empty.svg martini_glass_empty glass
F001 F001 solid/music.svg music
F002 F002 solid/magnifying-glass.svg magnifying_glass search
Expand Down Expand Up @@ -795,13 +796,13 @@ F053 F053 solid/chevron-left.svg chevron_left
F054 F054 solid/chevron-right.svg chevron_right
F055 F055 solid/circle-plus.svg circle_plus plus_circle
F056 F056 solid/circle-minus.svg circle_minus minus_circle
F057 F057 solid/circle-xmark.svg circle_xmark times_circle
F058 F058 solid/circle-check.svg circle_check check_circle
F057 F057 solid/circle-xmark.svg remove_sign times_circle
F058 F058 solid/circle-check.svg ok_sign check_circle
F059 F059 solid/circle-question.svg circle_question question_circle
F05A F05A solid/circle-info.svg circle_info info_circle
F05B F05B solid/crosshairs.svg crosshairs
F30B F05C solid/right-long.svg right_long times_circle_o
F30C F05D solid/up-long.svg up_long check_circle_o
F05C F05C regular/circle-xmark.svg circle_xmark times_circle_o
F05D F05D regular/circle-check.svg circle_check check_circle_o
F05E F05E solid/ban.svg ban
F31C F05F solid/file-pen.svg file_pen
F060 F060 solid/arrow-left.svg arrow_left
Expand Down Expand Up @@ -937,8 +938,8 @@ F0E1 F0E1 brands/linkedin-in.svg linkedin_in linkedin
F0E2 F0E2 solid/arrow-rotate-left.svg arrow_rotate_left undo
F0E3 F0E3 solid/gavel.svg gavel legal
F0E4 F0E4 solid/gauge-simple-high.svg gauge_simple_high dashboard tachometer
F0E5 F0E5 regular/comment.svg comments_o comment_o
F374 F0E6 brands/avianex.svg avianex
F0E5 F0E5 regular/comment.svg comment_o
F0E6 F0E6 regular/comments.svg comments_o
F0E7 F0E7 solid/bolt.svg bolt flash
F0E8 F0E8 solid/sitemap.svg sitemap
F0E9 F0E9 solid/umbrella.svg umbrella
Expand Down Expand Up @@ -974,8 +975,8 @@ F106 F106 solid/angle-up.svg angle_up
F107 F107 solid/angle-down.svg angle_down
F108 F108 solid/desktop.svg desktop
F109 F109 solid/laptop.svg laptop
F10A F10A solid/tablet-button.svg tablet_button
F10B F10B solid/mobile-button.svg mobile_button mobile_phone
F3FA F10A solid/tablet-screen-button.svg tablet_screen_button
F3CD F10B solid/mobile-screen-button.svg mobile_screen_button mobile_phone
F10C F10C regular/circle.svg circle_o
F10D F10D solid/quote-left.svg quote_left
F10E F10E solid/quote-right.svg quote_right
Expand Down Expand Up @@ -1067,10 +1068,10 @@ F163 F163 solid/arrow-up-1-9.svg arrow_up_1_9 sort_numeric_desc
F164 F164 solid/thumbs-up.svg thumbs_up
F165 F165 solid/thumbs-down.svg thumbs_down
F166 F166 brands/square-youtube.svg square_youtube youtube_square
F167 F167 brands/youtube.svg youtube
F384 F167 brands/cloudsmith.svg cloudsmith
F168 F168 brands/xing.svg xing
F169 F169 brands/square-xing.svg square_xing xing_square
F384 F16A brands/cloudsmith.svg cloudsmith youtube_play
F167 F16A brands/youtube.svg youtube youtube_play
F16B F16B brands/dropbox.svg dropbox
F16C F16C brands/stack-overflow.svg stack_overflow
F16D F16D brands/instagram.svg instagram
Expand Down Expand Up @@ -1183,7 +1184,7 @@ F1D7 F1D7 brands/weixin.svg weixin wechat
F1D8 F1D8 solid/paper-plane.svg paper_plane send
F1D9 F1D9 regular/paper-plane.svg paper_plane_o send_o
F1DA F1DA solid/clock-rotate-left.svg clock_rotate_left history
F1DB F1DB solid/circle.svg circle_thin
F1DB F1DB regular/circle.svg circle_thin
F1DC F1DC solid/heading.svg heading header
F1DD F1DD solid/paragraph.svg paragraph
F1DE F1DE solid/sliders.svg sliders
Expand Down Expand Up @@ -1245,7 +1246,7 @@ F215 F215 brands/simplybuilt.svg simplybuilt
F216 F216 brands/skyatlas.svg skyatlas
F217 F217 solid/cart-plus.svg cart_plus
F218 F218 solid/cart-arrow-down.svg cart_arrow_down
F219 F219 solid/diamond.svg diamond
F3A5 F219 regular/gem.svg gem
F21A F21A solid/ship.svg ship
F21B F21B solid/user-secret.svg user_secret
F21C F21C solid/motorcycle.svg motorcycle
Expand Down Expand Up @@ -1379,7 +1380,7 @@ F29B F29B brands/accessible-icon.svg accessible_icon wheelchair_alt
F29C F29C regular/circle-question.svg question_circle_o
F29D F29D solid/person-walking-with-cane.svg person_walking_with_cane blind
F29E F29E solid/audio-description.svg audio_description
F3A5 F29F regular/gem.svg gem
F219 F29F solid/diamond.svg diamond
F2A0 F2A0 solid/phone-volume.svg phone_volume volume_control_phone
F2A1 F2A1 solid/braille.svg braille
F2A2 F2A2 solid/ear-listen.svg ear_listen assistive_listening_systems
Expand Down Expand Up @@ -1476,12 +1477,13 @@ F3C1 F2FC solid/lock-open.svg lock_open
F3C3 F2FD brands/lyft.svg lyft
F2FE F2FE solid/poo.svg poo
F3C4 F2FF brands/magento.svg magento
# Name clash: name: comments_o, old: F0E6, new: F0E5 (F0E5), name at old pos: avianex
# Name clash: name: youtube, old: F167, new: F16A (F167), name at old pos: cloudsmith
# Name clash: name: rotate_left, old: F0E2, new: F2EA (F2EA), name at old pos: arrow_rotate_left
# Name clash: name: rotate_right, old: F01E, new: F2F9 (F2F9), name at old pos: arrow_rotate_right
# Name clash: name: bitcoin, old: F15A, new: F10F (F379), name at old pos: btc
# Name clash: name: facebook_f, old: F09A, new: F24F (F39E), name at old pos: facebook
# Name clash: name: mobile, old: F10B, new: ED08 (F3CE), name at old pos: mobile_button
# Name clash: name: tablet, old: F10A, new: ED2E (F3FB), name at old pos: tablet_button
# Name clash: name: diamond, old: F219, new: F29F (F219), name at old pos: gem
# Name clash: name: mobile, old: F10B, new: ED08 (F3CE), name at old pos: mobile_screen_button
# Name clash: name: tablet, old: F10A, new: ED2E (F3FB), name at old pos: tablet_screen_button
# Name clash: name: vimeo, old: F27D, new: ED39 (F40A), name at old pos: vimeo_v

Loading