Skip to content

Commit

Permalink
Merge pull request #1722 from ryanoasis/feature/FontAwesome-scaleing
Browse files Browse the repository at this point in the history
FontAwesome: Scale glyphs a bit smaller
  • Loading branch information
Finii authored Oct 28, 2024
2 parents 02cd12e + 3936a48 commit d3bb7e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit d3bb7e2

Please sign in to comment.