You are not logged in.

#1 2013-11-26 15:07:56

jishnu7
Member
Registered: 2013-04-15
Posts: 12

[solved] powerline font left arrow not showing in urxvt

urxvt is not rendering left arrow, but right arrow doesn't have any problem.

screen shot of vim-airline
ZNpyx1q.png

I'm using Inconsolata for Powerline and urxvt configuration is

URxvt*font: xft:Inconsolata for Powerline:regular:pixelsize=16,xft:Dejavu Sans Mono
Xft.dpi:                    96
Xft.antialias:              true
Xft.rgba:                   rgb
Xft.hinting:                true
Xft.hintstyle:              hintslight

Xresources file


I checked my font in gedit and confirmed that left arrow is included.

Any help will be appreciated.

Last edited by jishnu7 (2013-11-27 16:28:47)

Offline

#2 2013-11-26 21:37:43

suija
Member
Registered: 2013-06-23
Posts: 34

Re: [solved] powerline font left arrow not showing in urxvt

Are you using the vim-only powerline, or the new unified one?

First thing I can think of is your config files aren't referencing the correct glyph, or there is a mistake in them somewhere.
Search for the arrow  it should be visible in the config.

Also "xft:Inconsolata for Powerline" should be "xft:Inconsolata\ for\ Powerline", at least my terminess font has the spaces like that.

Edit: Oh, and there is a \ and a new line in my .Xdefaults before the fallback font

 URxvt*font: xft:Terminess\ Powerline:pixelsize=14,\
              xft:Fixed:antialias=false:style=ja:pixelsize=13

Edit2: Sorry, I didn't see you were using airline. I installed it just now and it's better than the other one!
As for the problem - try setting

let g:airline_right_sep = ''

in your .vimrc and make sure you actually see the symbol, cause my font might be different.

Last edited by suija (2013-11-26 23:02:38)


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#3 2013-11-27 04:59:02

jishnu7
Member
Registered: 2013-04-15
Posts: 12

Re: [solved] powerline font left arrow not showing in urxvt

suija wrote:

Are you using the vim-only powerline, or the new unified one?

First thing I can think of is your config files aren't referencing the correct glyph, or there is a mistake in them somewhere.
Search for the arrow  it should be visible in the config.

Also "xft:Inconsolata for Powerline" should be "xft:Inconsolata\ for\ Powerline", at least my terminess font has the spaces like that.

Edit: Oh, and there is a \ and a new line in my .Xdefaults before the fallback font

 URxvt*font: xft:Terminess\ Powerline:pixelsize=14,\
              xft:Fixed:antialias=false:style=ja:pixelsize=13

Edit2: Sorry, I didn't see you were using airline. I installed it just now and it's better than the other one!
As for the problem - try setting

let g:airline_right_sep = ''

in your .vimrc and make sure you actually see the symbol, cause my font might be different.

re
Thanks for the reply. I actually tried setting leftwards arrowhead to airline before posting here. It wasn't working. Here is the screenshot of printing powerline symbols in urxvt, this is more like a urxvt related configuration issue than vim-airline.
cN2h1kv.png

I also tried \ before space, it is doesn't make any difference.

Offline

#4 2013-11-27 11:39:14

suija
Member
Registered: 2013-06-23
Posts: 34

Re: [solved] powerline font left arrow not showing in urxvt

I copied your config and it's working here. My inconsolata font is from Lokaltog
Does it work in other terminals?


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#5 2013-11-27 16:28:23

jishnu7
Member
Registered: 2013-04-15
Posts: 12

Re: [solved] powerline font left arrow not showing in urxvt

I some how got it working. Changing font pixel size to an odd number fixed the issue.
Thanks for the help.

Offline

Board footer

Powered by FluxBB