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: Scale glyphs a bit smaller #1722

Merged
merged 2 commits into from
Oct 28, 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
2 changes: 1 addition & 1 deletion bin/scripts/archive-fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ while read -r filename; do

rm -f "${outputdir}/${basename}.tar"
expected=$(find "${searchdir}" -iname "*.[ot]tf" -exec echo "+" \; | wc -l)
if [ $expected -eq 0 ]; then
if [ "${expected}" -eq 0 ]; then
echo "${LINE_PREFIX} There seem to be no font files in ${basename}! Aborting!"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/scripts/lib/i_fa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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.1
# Nerd Fonts Version: 3.2.0
# Script Version: (autogenerated)
test -n "$__i_fa_loaded" && return || __i_fa_loaded=1
i='' i_fa_location_dot=$i
Expand Down
Binary file modified src/glyphs/font-awesome/FontAwesome.otf
Binary file not shown.
4 changes: 2 additions & 2 deletions src/glyphs/font-awesome/generate
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ for _, codepoint, file, *names in mapping:
num_icons = len(mapping)

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

codepoints = [ int(p, 16) for _, p, *_ in mapping ]
Expand Down