Skip to content

Instantly share code, notes, and snippets.

@razum2um
Forked from creaktive/TerminusBold.dfont
Created January 19, 2014 17:38
Show Gist options
  • Save razum2um/8508224 to your computer and use it in GitHub Desktop.
Save razum2um/8508224 to your computer and use it in GitHub Desktop.
# http://www.ax86.net/2010/08/28/generate-your-own-ttf-versions-of-the-terminus-font
# http://hp.vector.co.jp/authors/VA013651/freeSoftware/mkbold-mkitalic.html
# https://pypi.python.org/pypi/bdflib
# http://mbauman.net/geek/2009/03/15/minor-truetype-font-editing-on-a-mac/
sudo apt-get install fontforge potrace python-fontforge
tar xavf ~/mkttf.tar.bz2
cd mkttf/
tar xavf ~/terminus-font-4.38.tar.gz
cd terminus-font-4.38/
mv ter-u12b.bdf{,.bak}
bdflib-embolden --ignore-spacing ter-u12b.bdf{.bak,}
wget https://github.com/Lokaltog/vim-powerline/raw/develop/fontpatcher/PowerlineSymbols.sfd
wget https://github.com/Lokaltog/vim-powerline/raw/develop/fontpatcher/fontpatcher
ls *.bdf | xargs -n1 python fontpatcher --no-rename
rename -f 's/-Powerline-\d+//' *.bdf
cd ..
./mkttf.sh terminus-font-4.38/
ftxdumperfuser -t hhea -A d *.dfont
perl -i.bak -pe 's/\b(lineGap=)"\d+"/$1"0"/' *.xml
ftxdumperfuser -t hhea -A f *.dfont
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment