You are not logged in.

#1 2014-01-05 06:01:13

ssfdust
Member
Registered: 2012-09-06
Posts: 31

[solved]urxvt font problem with powerline in vim

Hello, everyone
I want to make my zsh under urxvt look like this
https://gist.github.com/agnoster/371287 … enshot.png
It seems that I have succeeded
http://imagebin.org/index.php?mode=image&id=285220

But when I switch to vim interface ,the fancy symbols can't show
http://imagebin.org/index.php?mode=image&id=285221

And what's strange, the terminal(urxvt) still can't output the unicode character "2b80"
http://imagebin.org/index.php?mode=image&id=285222

I am using urxvt with font patch from aur, and costom vim complied with python and gui support enable(that 's the only difference from official repo)
All my used fonts are patched font from ttf-powerline-fonts-git and ttf-inconsolata-dz-powerline
And everying goes well in konsole.


BTW,when I choose to use *.otf fonts, urxvt can't start,like Inconsolata for Powerline.otf.

urxvt -fn "xft: Inconsolata for Powerline:style=Medium"
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.

Here is my .Xresources

URxvt.background: rgba:0000/0000/0000/cccc
URxvt.foreground: #1c7e87
! Use shift+pageup/down to scroll in screen
URxvt.scrollBar: False
URxvt.scrollstyle: next
URxvt.secondaryScroll: True
!set the artificial transparency of the v.t.
URxvt.tansparent: true
URxvt.depth:32
URxvt.inheritPixmap: True
URxvt.tintColor: grey
URxvt.shading: 500
URxvt.saveLines: 1500
URxvt.preeditType: Root
URxvt.borderLess: False
!Font settings
URxvt.cjkWidth: true
URxvt.utf8: true
URxvt.locale: true

*.font: xft:monofur:size=13,xft:DejaVu Sans Mono for Powerline:size=13

!Tested fonts,and most don't work
!URxvt.font: xft:DejaVu Sans Mono for Powerline:pixelsize=11:
!URxvt.font: xft:Menlo for Powerline:pixelsize=17
!URxvt.font:xft:Inconsolata-dz for Powerline:size=11:style=dz:antialias=true
!xft:Inconsolata-dz for Powerline:pixelsize=17:style=Regular:antialias=true,\n!URxvt.font:xft:terminus:medium:size=13:antialias=false,\n!xft:wenquanyi bitmap song:medium:pixelsize=13:antialias=False

!redefine color to use tango theme in vim
!Black
URxvt.color0: #705b5b
URxvt.color8: #000000
!Red
URxvt.color1: #CC0000
URxvt.color9: #EF2929
!Green
URxvt.color2: #4E9A06
URxvt.color10: #8AE234
!Yellow
URxvt.color3: #C4A000
URxvt.color11: #FCE94F
!Blue
URxvt.color4: #2b8bd2
URxvt.color12: #647767
!Magenta
URxvt.color5: #75507B
URxvt.color13: #AD7FA8
!Cyan
URxvt.color6: #06989A
URxvt.color14: #34E2E2
!White
URxvt.color7: #D3D7CF
URxvt.color15: #EEEEEC

Could anyone give help?Thx in advance

EDIT:
Forgot to post fc-list information...

fc-list | grep Powerline

/usr/share/fonts/OTF/Meslo LG M DZ Regular for Powerline.otf: Meslo LG M DZ for Powerline:style=RegularForPowerline
/usr/share/fonts/OTF/Meslo LG L DZ Regular for Powerline.otf: Meslo LG L DZ for Powerline:style=RegularForPowerline
/usr/share/fonts/OTF/Sauce Code Powerline Semibold.otf: Source Code Pro for Powerline,Source Code Pro Semibold:style=Semibold,Regular
/usr/share/fonts/TTF/Literation Mono Powerline Bold Italic.ttf: Liberation Mono for Powerline,Literation Mono Powerline:style=Bold Italic
/usr/share/fonts/TTF/Literation Mono Powerline.ttf: Liberation Mono for Powerline,Literation Mono Powerline:style=Regular
/usr/share/fonts/TTF/Anonymice Powerline.ttf: Anonymous Pro for Powerline,Anonymice Powerline:style=Regular
/usr/share/fonts/OTF/Sauce Code Powerline Regular.otf: Source Code Pro for Powerline,Sauce Code Powerline:style=Regular
/usr/share/fonts/OTF/Inconsolata for Powerline.otf: Inconsolata for Powerline:style=Medium
/usr/share/fonts/TTF/Anonymice Powerline Bold.ttf: Anonymous Pro for Powerline,Anonymice Powerline:style=Bold
/usr/share/fonts/TTF/DejaVu Sans Mono Bold for Powerline.ttf: DejaVu Sans Mono for Powerline:style=Bold
/usr/share/fonts/TTF/Anonymice Powerline Italic.ttf: Anonymous Pro for Powerlin ,Anonymice Powerline:style=Italic
/usr/share/fonts/TTF/Ubuntu Mono derivative Powerline Bold.ttf: Ubuntu Mono derivative Powerline:style=Bold
/usr/share/fonts/OTF/Meslo LG L Regular for Powerline.otf: Meslo LG L for Powerline:style=RegularForPowerline
/home/ssfdust/.fonts/mensch-Powerline.otf: Mensch for Powerline:style=RegularFo Powerline
/usr/share/fonts/OTF/Meslo LG S DZ Regular for Powerline.otf: Meslo LG S DZ for Powerline:style=RegularForPowerline
/usr/share/fonts/OTF/Meslo LG M Regular for Powerline.otf: Meslo LG M for Powerline:style=RegularForPowerline
/usr/share/fonts/OTF/Inconsolata-dz for Powerline.otf: Inconsolata-dz for Powerline:style=dz
/usr/share/fonts/TTF/Ubuntu Mono derivative Powerline Bold Italic.ttf: Ubuntu Mono derivative Powerline:style=Bold Italic
/usr/share/fonts/OTF/Droid Sans Mono for Powerline.otf: Droid Sans Mono for Powerline:style=Regular
/usr/share/fonts/TTF/Anonymice Powerline Bold Italic.ttf: Anonymous Pro for Powerline,Anonymice Powerline:style=Bold Italic
/usr/share/fonts/TTF/Literation Mono Powerline Bold.ttf: Liberation Mono for Powerline,Literation Mono Powerline:style=Bold
/usr/share/fonts/TTF/DejaVu Sans Mono Oblique for Powerline.ttf: DejaVu Sans Mono for Powerline:style=Oblique
/usr/share/fonts/OTF/Sauce Code Powerline Medium.otf: Source Code Pro for Powerline,Source Code Pro Medium:style=Medium,Regular
/usr/share/fonts/OTF/Sauce Code Powerline Black.otf: Source Code Pro for Powerline,Source Code Pro Black:style=Black,Regular
/usr/share/fonts/OTF/Meslo LG S Regular for Powerline.otf: Meslo LG S for Powerline:style=RegularForPowerline
/usr/share/fonts/TTF/Ubuntu Mono derivative Powerline.ttf: Ubuntu Mono derivative Powerline:style=Regular
/usr/share/fonts/OTF/Sauce Code Powerline ExtraLight.otf: Source Code Pro for Powerline,Source Code Pro ExtraLight:style=ExtraLight,Regular
/home/ssfdust/.fonts/Menlo-Powerline.otf: Menlo for Powerline:style=RegularForPowerline
/usr/share/fonts/TTF/DejaVu Sans Mono for Powerline.ttf: DejaVu Sans Mono for Powerline:style=Book
/usr/share/fonts/TTF/Literation Mono Powerline Italic.ttf: Liberation Mono for Powerline,Literation Mono Powerline:style=Italic
/usr/share/fonts/TTF/DejaVu Sans Mono Bold Oblique for Powerline.ttf: DejaVu Sans Mono for Powerline:style=Bold Oblique
/usr/share/fonts/OTF/Sauce Code Powerline Bold.otf: Source Code Pro for Powerline,Sauce Code Powerline:style=Bold
/usr/share/fonts/OTF/Sauce Code Powerline Light.otf: Source Code Pro for Powerline,Source Code Pro Light:style=Light,Regular
/usr/share/fonts/TTF/Ubuntu Mono derivative Powerline Italic.ttf: Ubuntu Mono derivative Powerline:style=Italic

EDIT:
Stubid me,I don't know when I switched /usr/share/fonts/OTF permissions to 644.I switch back to 755, now urxvt could use otf fonts.But the vim powerline problem remains.

Last edited by ssfdust (2014-01-06 11:05:37)


Lenovo Y471A-ifi
Arch x86_64 KDE Vim zsh
To enjoy brand new start

Offline

#2 2014-01-05 06:04:46

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [solved]urxvt font problem with powerline in vim

Does your .vimrc include the required settings for powerline to work correctly? Please paste your vimrc.

For example, see here.

All the best,

-HG

Offline

#3 2014-01-05 06:14:30

ssfdust
Member
Registered: 2012-09-06
Posts: 31

Re: [solved]urxvt font problem with powerline in vim

HalosGhost wrote:

Does your .vimrc include the required settings for powerline to work correctly? Please paste your vimrc.

For example, see here.

All the best,

-HG

"===========================================================
"Specific settings for powerline
set laststatus=2
set nocompatible
"let g:Powerline_symbols = 'unicode'
let g:Powerline_symbols = 'fancy'

Here is.


Lenovo Y471A-ifi
Arch x86_64 KDE Vim zsh
To enjoy brand new start

Offline

#4 2014-01-05 06:16:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved]urxvt font problem with powerline in vim

If you replace the oversize images again, I'll simply delete the thread.

Read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-01-05 07:14:31

ssfdust
Member
Registered: 2012-09-06
Posts: 31

Re: [solved]urxvt font problem with powerline in vim

jasonwryan wrote:

If you replace the oversize images again, I'll simply delete the thread.

Read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code

Sorry, I won't.


Lenovo Y471A-ifi
Arch x86_64 KDE Vim zsh
To enjoy brand new start

Offline

#6 2014-01-06 11:05:52

ssfdust
Member
Registered: 2012-09-06
Posts: 31

Re: [solved]urxvt font problem with powerline in vim

I have powerline replaced with airline.Now it works well.I finally found where the problem is.

In agnoster's zsh theme,the character "" was not "\u2b80" but "\ub0".And airline use the same character as agnoster's zsh theme.Though they look the same.And urxvt still doesn't support "\u2b80" in my system, but problem solved.


Lenovo Y471A-ifi
Arch x86_64 KDE Vim zsh
To enjoy brand new start

Offline

Board footer

Powered by FluxBB