-
-
Save razum2um/8508224 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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