Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Powerline-patched Monaco for Windows and OSX

Powerline-patched Monaco for Windows and OSX

This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.

I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)

Usage

Add the following lines to your .vimrc/_vimrc:

if has("mac") || has("macunix")
    set guifont=Monaco\ for\ Powerline:h24
elseif has("win32") || has("win64")
    set guifont=Monaco\ for\ Powerline:h14:cANSI
    set renderoptions=type:directx,renmode:5
endif

Tested software

  • KaoriYa's gvim build
  • MacVim
  • iTerm2 + oh-my-zsh
  • PuTTy
  • Babun (mintty)
@reyesyang

This comment has been minimized.

Copy link

commented Aug 27, 2015

Cool, This also works well on Ubuntu 15.04 with Vim an GVim

@fa7ad

This comment has been minimized.

Copy link

commented Oct 19, 2015

what @reyesyang said

@ianwitherow

This comment has been minimized.

Copy link

commented Dec 10, 2015

Anyone else have some weirdness with italics? The font seems to cut off some characters for me on Windows using GVim
Example:
image

I'm using
set guifont=Monaco\ for\ Powerline:h10:cANSI

@tstelzer

This comment has been minimized.

Copy link

commented Feb 24, 2016

I believe if a font-family does not come with a italic version, the font gets artificially skewed, even over their monospaced boundaries, which creates this odd effect. Try to disable the use of italics in your colorscheme config (look for all the lines gui=italic).
edit this Stackoverflow thread speaks of this more verbose.

@dragonxlwang

This comment has been minimized.

Copy link

commented Mar 15, 2016

thx!

@flavertonrr

This comment has been minimized.

Copy link

commented Jun 5, 2016

thx! works fine on Ubuntu 16.04!

@MareoRaft

This comment has been minimized.

Copy link

commented Jun 24, 2016

Just the slightest bit taller/blurry compared to the Monaco that comes with Mavericks. But still, thank you. Works on OSX 10.9.5 on Terminal.app

@chenzhihuai1990

This comment has been minimized.

Copy link

commented Mar 15, 2018

It works fine on Windows, but it don't contain supscript number 4, 5, ... , Could you add them, since they are convenient as tab numbers in airline-tabline plugin. THX! :)

@Congee

This comment has been minimized.

Copy link

commented Jun 16, 2018

@kevinis Can you please share how did you patch the font? I tried to patch Monaco by myself, but the line height looks too high.
https://stackoverflow.com/questions/46054645/using-inconsolata-font-in-putty-too-much-line-spacing

@Congee

This comment has been minimized.

Copy link

commented Jun 16, 2018

Made it by shamelessly copying metrics of this font to my fontforge settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.