1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-31 12:27:22 +02:00

Updates 'Knack' to now be just 'Hack' (license change)

- Removes reliance on 'Knack' name due to removal of SIL OFL Reserved font name 'Hack' no longer being a RFN
- This change has been in effect since Hack v3.000
This commit is contained in:
Ryan L McIntyre 2018-03-17 11:50:02 -04:00
parent b3c1735f4c
commit 1d84436942
4 changed files with 15 additions and 14 deletions

View File

@ -1,11 +1,13 @@
#!/bin/bash
# ------------------------------------------------------------------
#
# autohint.sh
# Copyright 2016 Christopher Simpkins
# MIT license
# Modified by Ryan L McIntyre
# for Nerd Fonts (https://github.com/ryanoasis/nerd-fonts)
# autohint.sh
# Copyright 2016 Christopher Simpkins
# MIT license
# Modified by Ryan L McIntyre
# for Nerd Fonts (https://github.com/ryanoasis/nerd-fonts)
# Nerd Fonts Version: 2.0.0
# Script Version: 1.0.1
#
# ------------------------------------------------------------------
@ -26,22 +28,22 @@ cp "$fontfile" "${fontfile}.tmp"
if [[ "$fontfile" == *" Regular"* ]]
then
echo "[Nerd Fonts] Hinting Knack (Hack) Regular"
echo "[Nerd Fonts] Hinting Hack Regular"
ttfautohint -l 4 -r 80 -G 350 -x 0 -H 181 -D latn -f latn -w G -W -t -X "" -I -m "bin/scripts/Hack/Hack-Regular-TA.txt" "${fontfile}.tmp" "$fontfile"
elif [[ "$fontfile" == *" Bold"* ]]
then
echo "[Nerd Fonts] Hinting Knack (Hack) Bold"
echo "[Nerd Fonts] Hinting Hack Bold"
ttfautohint -l 4 -r 80 -G 350 -x 0 -H 260 -D latn -f latn -w G -W -t -X "" -I -m "bin/scripts/Hack/Hack-Bold-TA.txt" "${fontfile}.tmp" "$fontfile"
elif [[ "$fontfile" == *" Italic"* ]]
then
echo "[Nerd Fonts] Hinting Knack (Hack) Italic"
echo "[Nerd Fonts] Hinting Hack Italic"
ttfautohint -l 4 -r 80 -G 350 -x 0 -H 145 -D latn -f latn -w G -W -t -X "" -I -m "bin/scripts/Hack/Hack-Bold-TA.txt" "${fontfile}.tmp" "$fontfile"
elif [[ "$fontfile" == *" BoldItalic"* ]]
then
echo "[Nerd Fonts] Hinting Knack (Hack) Bold Italic"
echo "[Nerd Fonts] Hinting Hack Bold Italic"
ttfautohint -l 4 -r 80 -G 350 -x 0 -H 265 -D latn -f latn -w G -W -t -X "" -I -m "bin/scripts/Hack/Hack-Bold-TA.txt" "${fontfile}.tmp" "$fontfile"
else
echo "[Nerd Fonts] Could not find any Knack (Hack) fonts to hint..."
echo "[Nerd Fonts] Could not find any Hack fonts to hint..."
fi
# clean-up

View File

@ -1,5 +1,6 @@
#!/bin/bash
# version: 1.1.0
# Nerd Fonts Version: 2.0.0
# Script Version: 1.1.0
fontfile=$1
dir=$(dirname "$0")

View File

@ -243,8 +243,6 @@ reservedFontNameReplacements = {
'Hermit' : 'Hurmit',
'fira' : 'fura',
'Fira' : 'Fura',
'hack' : 'knack',
'Hack' : 'Knack',
'hasklig' : 'hasklug',
'Hasklig' : 'Hasklug',
'Share' : 'Shure',

View File

@ -201,7 +201,7 @@ echo $i_oct_heart
| [Inconsolata Go Nerd Font][p-inconsolata-go] | | NO | 1000 | ![w] ![m2] ![l] |
| [Inconsolata LGC Nerd Font][p-inconsolata-lgc] | | NO | 1000 | ![w] ![m2] ![l] |
| [Iosevka Nerd Font][p-iosevka] | [Iosevka][f-iosevka] | YES | 1000 | [#83][s-iosevka] |
| [Knack Nerd Font*][p-hack] | [Hack][f-hack] | YES | 2048 | ![w] ![m2] ![l] |
| [Hack Nerd Font*][p-hack] | [Hack][f-hack] | NO | 2048 | ![w] ![m2] ![l] |
| [Lekton Nerd Font][p-lekton] | | NO | 1000 | ![w] ![m2] ![l] |
| [Literation Mono Nerd Font][p-liberation] | [Liberation][f-liberation] | YES | 2048 | ![w] ![m2] ![l] |
| [Meslo Nerd Font][p-meslo] | | NO | 2048 | ![w] ![m2] ![l] |