- Clone the repository of powerline:
git clone [email protected]:Lokaltog/powerline.git
- Put the
Makefile
into thepowerline/font
directory - Run
make
- Install the
Monaco for Powerline.ttf
and set it as non-ASCII font in your terminal such as iTerm2
Last active
August 29, 2015 13:57
-
-
Save tonyseek/9636400 to your computer and use it in GitHub Desktop.
Patch the Monaco font for vim-powerline/vim-airline in OS X.
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
PATCHED_FILENAME = "Monaco for Powerline.ttf" | |
$(PATCHED_FILENAME): Monaco.ttf fontpatcher.py fontpatcher-symbols.sfd | |
fontforge -script fontpatcher.py Monaco.ttf | |
@echo "(´・_・`) You can install the $(PATCHED_FILENAME) now." | |
Monaco.ttf: Monaco.dfont | |
fondu Monaco.dfont | |
rm *.bdf | |
Monaco.dfont: | |
cp /System/Library/Fonts/Monaco.dfont Monaco.dfont | |
fontpatcher-symbols.sfd: | |
git co f3ce37 -- fontpatcher-symbols.sfd | |
git reset fontpatcher-symbols.sfd | |
fontpatcher.py: | |
git co f3ce37 -- fontpatcher.py | |
git reset fontpatcher.py |
Before executing make you need to have installed some additional software. You can run following commands for installing required software:
brew install Caskroom/cask/xquartz
brew install fontforge
brew install fondu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The make command output this errors:
The "Monaco for Powerline.ttf" is generated and works (apparently) with vim-airline.
Thanks for the script, you save me a lot of work.