Can't see the fancy unicode fonts. #23

Closed
esn89 opened this Issue Jul 7, 2013 · 15 comments

Comments

Projects
None yet
3 participants
Contributor

esn89 commented Jul 7, 2013

Hi,

I just switched to your vim-airline and I noticed that even putting the powerline fonts into the .fonts and running fc-cache -vf ~/.fonts doesn't seem to make the chars show up.

Let me show you a screenshot of what I see:
http://i.imgur.com/kxgYWdI.png

Some help will be appreciated, thanks a bunch..

Oh also, in my .vimrc I did this:
let g:airline_theme='light'
let g:airline_powerline_fonts=0


Trying it with:

let g:airline_powerline_fonts=1

I get the same thing.

Owner

bling commented Jul 7, 2013

have you double checked you're using the new powerline fonts and not the old vim-powerline ones?

Contributor

esn89 commented Jul 7, 2013

Yes, I made sure it was the new one. And placed it in ~/.fonts right?

Do I need to do anything like this:

let g:font=something something?

Owner

bling commented Jul 7, 2013

hmmm, that is very odd. in your screenshot you have the L/N symbol showing up, but none of the others. did you patch the fonts yourself or did you use prepatched fonts from this repo?

Contributor

esn89 commented Jul 7, 2013

I didn't patch them myself. I used the one from that repo.

Contributor

esn89 commented Jul 8, 2013

Any ideas? :S

Contributor

esn89 commented Jul 8, 2013

Where should I place those fonts? And do I need to add anything else into my vimrc?

Furthermore, if I am using urxvt, what compile flags should I have? And what about the compile flags for vim?

Owner

bling commented Jul 8, 2013

can you go over the powerline documentation? it has extensive information on setting up terminals and fonts.

Contributor

esn89 commented Jul 8, 2013

That I did... I came from that powerline until I saw airline haha.

I am using the urxvt with unicode support and with compile with features=big.

Still no luck!

Owner

bling commented Jul 8, 2013

can you try a different terminal? none of the others need to be recompiled.

Contributor

esn89 commented Jul 8, 2013

I managed to get it to work using the patched fonts. So urxvt, my terminal of choice is a-ok (phew).

Of course, things never work 100% for me, and here is a funny little image:

http://i.imgur.com/rI2xwRS.png

As you can see the > > work, but the other side didn't work. Taking a look at :h airline my copy the :h shows no support for the triangles that face the other direction. Is this a small fix? Can I copy and paste the symbols from somewhere?

Owner

bling commented Jul 8, 2013

well we know that it is either urxvt, the font you're using, or a combination of both. i'd recommend that you try one of the other terminals to rule out urxvt for sure, and then try one of the other pre-patched fonts to rule out that particular font.

Contributor

esn89 commented Jul 8, 2013

So it is urxvt.

Xterm handles this guy with no problem: 

Here is a picture of the two:

http://i.imgur.com/ApcGjsn.png

where do i go from here? :s

Owner

bling commented Jul 8, 2013

use another terminal :-)

if you have to stick with urxvt then go back to the drawing board, recompile everything and make sure unicode is in properly.

i'm gonna close this out because it's unrelated to airline.

@bling bling closed this Jul 8, 2013

Contributor

esn89 commented Jul 8, 2013

I got it to work!

Just wanted to let you know if anyone has the same issue in the future:

urxvt DOES work work provided that you followed the powerline document's way of compiling with the flags n all.

It is just that, the weird part is: in your xdefaults the font sizes must be an odd number.

http://i.imgur.com/CbTMZuM.png

umun commented Oct 23, 2013

Hi Bling/esn89,

I also had problems on gvim - Win 7. No chance recompiling stuff here. So I solved with a workaround by simply pasting the following into my .vimrc file:

"powerline symbols
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif

let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''

clipboard-powerline

clipboard-vim

The symbols above are not showing (so attached screencap) but they are showing in the airline.txt documentation when I type :help airline. I used the patched font from the repo mentioned by bling but had the same prob as esn89.

After that restarting gvim worked for me. Hope this is helpful for others that chance upon this page searching for a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment