bohoomil / fontconfig-ultimate

freetype2-infinality run-time settings => infinality compatible fontconfig => infinality-bundle
453 stars 38 forks source link

Patch mono fonts for Powerline compatibility #100

Open jurf opened 9 years ago

jurf commented 9 years ago

It would be awesome if the mono fonts in this repo were patched for Powerline compatibility. Right now users need to download patched fonts and set them as backup if they don't want to lose the nice Infinality rendering.

The fonts can be patched for example with this utility.

devurandom commented 8 years ago

It would be great if fontconfig-ultimate would ship with an appropriate configuration included. Then powerline/powerline#1497 would become obsolete.

P.S: Patching the fonts may not be strictly necessary. There is a way to add the Powerline Symbols by just adding a fontconfig file. However, the file shipped by Powerline does not support the fonts used by fontconfig-infinality-ultimate.

adgoudz commented 8 years ago

I keep checking this thread for updates, hoping that @bohoomil would appease the Powerline community. My setup looks just like @devurandom:

image

I think fixing this is simply a matter of rendering the Powerline glyphs in a way that's compatible with the mono fonts in this repo. There is a helpful overview of how these glyphs work over here. Basically Powerline is using 7 code points (from what I can tell) in the Private User Area of the Unicode BMP:

U+E0A0 Version control branch U+E0A1 LN (line) symbol U+E0A2 Closed padlock U+E0B0 Rightwards black arrowhead U+E0B1 Rightwards arrowhead U+E0B2 Leftwards black arrowhead U+E0B3 Leftwards arrowhead

The symbol font file is available here: https://github.com/powerline/powerline/tree/develop/font

The patched mono fonts that ship with Powerline work for me for now, but I notice an obvious improvement when using the same mono font from fontconfig-ultimate (sans the spacing issues with the Powerline glyphs).