Last active
February 8, 2021 04:14
-
-
Save codeman38/626c363d53f3d19c7369cde82d2f2f17 to your computer and use it in GitHub Desktop.
Script to create alternate versions of Source Sans fonts with consistent 2-story 'a' and 1-story 'g'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p TTF_alt | |
for fn in TTF/*.ttf; do | |
feat=ss04 | |
if [[ $fn == *It.ttf ]] || [[ $fn == *Italic.ttf ]]; then | |
feat=ss03 | |
fi | |
pyftfeatfreeze -S -U 'Alt' -f $feat $fn TTF_alt/$(basename $fn | sed 's/-/-Alt-/') | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: this requires the opentype-feature-freezer Python package to be installed.