Skip to content

Instantly share code, notes, and snippets.

@shelaf
Created February 25, 2020 07:37
Show Gist options
  • Save shelaf/fb98a8c44009a381d45785511e425101 to your computer and use it in GitHub Desktop.
Save shelaf/fb98a8c44009a381d45785511e425101 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for f in Ricty*.ttf; do
ttx -t OS/2 "${f}"
sed -i -e 's/xAvgCharWidth value="913"/xAvgCharWidth value="500"/' "${f%%.ttf}.ttx"
mv "${f}" "${f%%.ttf}.orig.ttf"
ttx -m "${f%%.ttf}.orig.ttf" "${f%%.ttf}.ttx"
rm "${f%%.ttf}.orig.ttf" *.ttx
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment