powerline / fonts

Patched fonts for Powerline users.
25.75k stars 3.19k forks source link

Droid Sans Mono on OS X not patching? #19

Open OliverJAsh opened 11 years ago

OliverJAsh commented 11 years ago

iTerm2 settings:

.vimrc:

set guifont=Droid\ Sans\ Mono\ for\ Powerline.ttf:h15

Result:

I downloaded the OTF and converted it to TTF with fontforge (the OTF didn't work in iTerm), using the following script:

#!/usr/local/bin/fontforge
# Quick and dirty hack: converts a font to truetype (.ttf)
Print("Opening "+$1);
Open($1);
Print("Saving "+$1:r+".ttf");
Generate($1:r+".ttf");
Quit(0);

The result of the conversion was this:

Opening Droid Sans Mono for Powerline.otf
The glyph named mu is mapped to U+00B5.
But its name indicates it should be mapped to U+03BC.
The glyph named Tcommaaccent is mapped to U+021A.
But its name indicates it should be mapped to U+0162.
The glyph named tcommaaccent is mapped to U+021B.
But its name indicates it should be mapped to U+0163.
The glyph named macron is mapped to U+02C9.
But its name indicates it should be mapped to U+00AF.
The glyph named hook is mapped to U+0309.
But its name indicates it should be mapped to U+2440.
The glyph named Omega is mapped to U+2126.
But its name indicates it should be mapped to U+03A9.
The glyph named Delta is mapped to U+2206.
But its name indicates it should be mapped to U+0394.
Saving Droid Sans Mono for Powerline.ttf

What do I need to do to get this font to work in iTerm2/MacVim on OS X?

daagar commented 11 years ago

I know nothing about OSX, but you might want to try patching the original font rather that the .otf from here. That way you'll be going from .ttf to .ttf, rather than from .otf to .ttf.

OliverJAsh commented 11 years ago

I'm following these instructions now to do that. I can't seem to find fontpatcher.py anywhere however. Any tips?

OliverJAsh commented 11 years ago

I got the .otf file to work by restarting iTerm. In Terminal.app the patched characters appear how they should, and also in MacVim. In Vim in Term2, however, they appear as shown above still…

daagar commented 11 years ago

fontpatcher.py is part of the actual powerline repository (Lokaltog/powerline), not here in powerline-fonts :)

richardwooding commented 10 years ago

I can't find font-patcher.py in the powerline repository?

Lokaltog commented 10 years ago

https://github.com/Lokaltog/powerline-fontpatcher