Skip to content

Instantly share code, notes, and snippets.

@codeman38
Last active February 8, 2021 04:14
Show Gist options
  • Save codeman38/626c363d53f3d19c7369cde82d2f2f17 to your computer and use it in GitHub Desktop.
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'
#!/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
@codeman38
Copy link
Author

Note: this requires the opentype-feature-freezer Python package to be installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment