Skip to content

Commit d3bb7e2

Browse files
authored
Merge pull request #1722 from ryanoasis/feature/FontAwesome-scaleing
FontAwesome: Scale glyphs a bit smaller
2 parents 02cd12e + 3936a48 commit d3bb7e2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/scripts/archive-fonts.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ while read -r filename; do
5757

5858
rm -f "${outputdir}/${basename}.tar"
5959
expected=$(find "${searchdir}" -iname "*.[ot]tf" -exec echo "+" \; | wc -l)
60-
if [ $expected -eq 0 ]; then
60+
if [ "${expected}" -eq 0 ]; then
6161
echo "${LINE_PREFIX} There seem to be no font files in ${basename}! Aborting!"
6262
exit 1
6363
fi

bin/scripts/lib/i_fa.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Font Awesome (version 6.5.1, 1475 icons, 342 aliases)
33
# Does not include all icons of the release
44
# Codepoints: ED00-F2FF with gaps
5-
# Nerd Fonts Version: 3.2.1
5+
# Nerd Fonts Version: 3.2.0
66
# Script Version: (autogenerated)
77
test -n "$__i_fa_loaded" && return || __i_fa_loaded=1
88
i='' i_fa_location_dot=$i
4 Bytes
Binary file not shown.

src/glyphs/font-awesome/generate

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ for _, codepoint, file, *names in mapping:
9393
num_icons = len(mapping)
9494

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

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

0 commit comments

Comments
 (0)