Skip to content

Commit

Permalink
Updates 'Knack' to now be just 'Hack' (license change)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
ryanoasis committed Mar 17, 2018
1 parent b3c1735 commit 1d84436
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
22 changes: 12 additions & 10 deletions bin/scripts/Hack/autohint.sh
Original file line number Diff line number Diff line change
@@ -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
#
# ------------------------------------------------------------------

Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion bin/scripts/Hack/postprocess.sh
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
2 changes: 0 additions & 2 deletions font-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ reservedFontNameReplacements = {
'Hermit' : 'Hurmit',
'fira' : 'fura',
'Fira' : 'Fura',
'hack' : 'knack',
'Hack' : 'Knack',
'hasklig' : 'hasklug',
'Hasklig' : 'Hasklug',
'Share' : 'Shure',
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand Down

0 comments on commit 1d84436

Please sign in to comment.