Skip to content

Instantly share code, notes, and snippets.

@spthm
Forked from mr-sudaca/Makefile
Last active March 19, 2018 23:27
Show Gist options
  • Save spthm/53de50e3bc4aed989149347eaa18345e to your computer and use it in GitHub Desktop.
Save spthm/53de50e3bc4aed989149347eaa18345e to your computer and use it in GitHub Desktop.
monaco for powerline
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 checkout f3ce37 -- fontpatcher-symbols.sfd
git reset fontpatcher-symbols.sfd
fontpatcher.py:
git checkout f3ce37 -- fontpatcher.py
git reset fontpatcher.py
  1. brew install fontforge
  2. brew install fondu
  3. Clone the repository of powerline: git clone git@github.com:Lokaltog/powerline.git
  4. Download the above Makefile (and make sure it's Makefile, not e.g. Makefile.txt)
  5. cp Makefile powerline/font
  6. cd powerline/font
  7. Run make
  8. fontforge -script [...] might fail; it seems to do enough to produce a working Monaco for Powerline.ttf, though
  9. Install (locate in Finder, double-click and then 'Install') the Monaco for Powerline.ttf and set it as non-ASCII font in your terminal such as iTerm2, or as the font in Terminal.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment