mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
Merge pull request #1722 from ryanoasis/feature/FontAwesome-scaleing
FontAwesome: Scale glyphs a bit smaller
This commit is contained in:
commit
d3bb7e2964
@ -57,7 +57,7 @@ while read -r filename; do
|
|||||||
|
|
||||||
rm -f "${outputdir}/${basename}.tar"
|
rm -f "${outputdir}/${basename}.tar"
|
||||||
expected=$(find "${searchdir}" -iname "*.[ot]tf" -exec echo "+" \; | wc -l)
|
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!"
|
echo "${LINE_PREFIX} There seem to be no font files in ${basename}! Aborting!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Font Awesome (version 6.5.1, 1475 icons, 342 aliases)
|
# Font Awesome (version 6.5.1, 1475 icons, 342 aliases)
|
||||||
# Does not include all icons of the release
|
# Does not include all icons of the release
|
||||||
# Codepoints: ED00-F2FF with gaps
|
# Codepoints: ED00-F2FF with gaps
|
||||||
# Nerd Fonts Version: 3.2.1
|
# Nerd Fonts Version: 3.2.0
|
||||||
# Script Version: (autogenerated)
|
# Script Version: (autogenerated)
|
||||||
test -n "$__i_fa_loaded" && return || __i_fa_loaded=1
|
test -n "$__i_fa_loaded" && return || __i_fa_loaded=1
|
||||||
i='' i_fa_location_dot=$i
|
i='' i_fa_location_dot=$i
|
||||||
|
Binary file not shown.
@ -93,8 +93,8 @@ for _, codepoint, file, *names in mapping:
|
|||||||
num_icons = len(mapping)
|
num_icons = len(mapping)
|
||||||
|
|
||||||
print('Generating {} with {} glyphs'.format(fontfile, num_icons))
|
print('Generating {} with {} glyphs'.format(fontfile, num_icons))
|
||||||
font.ascent = 1000
|
font.ascent = 1050
|
||||||
font.descent = 200
|
font.descent = 250
|
||||||
font.generate(os.path.join(fontdir, fontfile), flags=("no-FFTM-table",))
|
font.generate(os.path.join(fontdir, fontfile), flags=("no-FFTM-table",))
|
||||||
|
|
||||||
codepoints = [ int(p, 16) for _, p, *_ in mapping ]
|
codepoints = [ int(p, 16) for _, p, *_ in mapping ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user