You are not logged in.

#1 2015-09-19 16:35:53

Jack450
Member
From: Los Angeles
Registered: 2010-07-11
Posts: 58

Powerline fonts for Urxvt.

How do you install the patched powerline fonts to work with Urxvt? I've tried using git and AUR but it's stilll not showing up?

Last edited by Jack450 (2015-09-19 16:59:20)


Welcome to the Internet!

This isn't Daycare or the Justice System, here you're retarded until proven innocent.

Offline

#2 2015-09-19 18:05:05

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Powerline fonts for Urxvt.

Did you tell urxvt to use the newly installed fonts?

https://wiki.archlinux.org/index.php/Rx … on_methods

Offline

#3 2015-09-19 19:12:36

Jack450
Member
From: Los Angeles
Registered: 2010-07-11
Posts: 58

Re: Powerline fonts for Urxvt.

Yeah, I'm using Droid Sans Mono for Powerline and it's not showing most of them.


Welcome to the Internet!

This isn't Daycare or the Justice System, here you're retarded until proven innocent.

Offline

#4 2015-09-19 20:49:54

flannelhead
Member
From: Finland
Registered: 2014-03-30
Posts: 55
Website

Re: Powerline fonts for Urxvt.

URxvt can be a little picky about the Powerline glyphs.

First, double check you've provided the correct Xft string to URxvt in .Xresources. You should be able find the right Xft string by filtering the output of `fc-list`.

If you're using urxvtd (urxvt daemon), keep in mind it refreshes its font cache only when it's started. So if you've just installed the new font, new urxvtc clients can't see it before urxvtd is restarted.

Also, if you happen to like the Source Code Pro font, you could try installing it from the official repos. Nowadays it has the Powerline glyphs built in and works pretty well in URxvt.

Offline

#5 2015-09-20 02:49:30

Jack450
Member
From: Los Angeles
Registered: 2010-07-11
Posts: 58

Re: Powerline fonts for Urxvt.

I'm not getting all of them so I end up with boxes to replace the missing ones.

http://i60.tinypic.com/2eyl4xw.jpg



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by Jack450 (2015-09-20 02:51:32)


Welcome to the Internet!

This isn't Daycare or the Justice System, here you're retarded until proven innocent.

Offline

#6 2015-09-20 11:12:15

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

Re: Powerline fonts for Urxvt.

I have tried a lot of fonts for powerline in Urxvt before, the only working one is DejaVu Sans Mono for Powerline which could be found on aur.
ttf-dejavu-sans-mono-powerline-git


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

Offline

#7 2015-09-20 13:34:35

flannelhead
Member
From: Finland
Registered: 2014-03-30
Posts: 55
Website

Re: Powerline fonts for Urxvt.

Jack450 wrote:

I'm not getting all of them so I end up with boxes to replace the missing ones.

I see. With some patched fonts it has been seen that the font size actually affects if all the symbols are displayed or not, see here. You could try different font sizes and see if the symbols appear.

Good luck!

Offline

#8 2015-09-20 14:25:48

Jack450
Member
From: Los Angeles
Registered: 2010-07-11
Posts: 58

Re: Powerline fonts for Urxvt.

Is there a term that can use droid font to display the powerline glyphs? I messed with the size and I still go the same results. Dejavu worked but I'd rather stick with the droid font if there's a term that can display them.


Welcome to the Internet!

This isn't Daycare or the Justice System, here you're retarded until proven innocent.

Offline

#9 2015-09-21 06:20:39

flannelhead
Member
From: Finland
Registered: 2014-03-30
Posts: 55
Website

Re: Powerline fonts for Urxvt.

Which font from AUR are you using? I tried otf-droid-sans-mono-powerline-git, ttf-droid-sans-mono-dotted-powerline-git and ttf-droid-sans-mono-slashed-powerline-git.

I have the following in .Xresources:

URxvt*font: xft:Droid Sans Mono for Powerline:size=10
URxvt*letterSpace: -2

The otf font works well at least at sizes 9–12. The ttf fonts don't seem to give the right glyphs at size=10 but 9, 11 and 12 work (the ttf font seems to render smaller than the otf font at the same size). I'm using the standard rxvt-unicode from the official repos.

Should you still face problems getting the glyphs right, you could try a libvte-based terminal emulator. Sakura is a lightweight one and can be found in the official repos.

Offline

#10 2015-09-22 03:59:41

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

Re: Powerline fonts for Urxvt.

flannelhead wrote:

I have the following in .Xresources:

URxvt*font: xft:Droid Sans Mono for Powerline:size=10
URxvt*letterSpace: -2

The otf font works well at least at sizes 9–12. The ttf fonts don't seem to give the right glyphs at size=10 but 9, 11 and 12 work (the ttf font seems to render smaller than the otf font at the same size). I'm using the standard rxvt-unicode from the official repos.

Should you still face problems getting the glyphs right, you could try a libvte-based terminal emulator. Sakura is a lightweight one and can be found in the official repos.

I have followed your configuration, and new problem came.It can't display the symbol "✘" correctly.What Urxvt shows is only a white block.
And worse, if I set letterSpace option to -2, there are no graphs shown at all.Every graph becomes a white block.
I tried different font sizes from 9 to 13, but none workes.
Here is the pictrue whitout setting letterSpace.
Here is the pictrue whit setting letterSpace.
the expected pictrue which is rendered with DejaVu Sans Mono for Powerline.

Edit:
my .Xresources:

URxvt.background: rgba:0000/0000/0000/cccc
URxvt*foreground: #727e78 
URxvt*cursorColor: #FFAF00
! Use shift+pageup/down to scroll in screen
URxvt.scrollBar: False
URxvt.scrollstyle: next
URxvt.secondaryScroll: True
! Add simple tab function to urxvt
URxvt.perl-ext-common: tabbed
URxvt.tabbed.tabbar-fg: 14
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 10
URxvt.tabbed.tab-bg: 8
!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
!URxvt*font: xft:terminus:pixelsize=14:antialias=true:hinting=true:autohinting=true
URxvt*font: xft:DejaVu Sans Mono for Powerline:size=12,xft:SimHei:size=12
!URxvt.font:xft:Inconsolata\ for\ Powerline:size=13:style=dz:antialias=true,xft:SimHei:size=13
!URxvt*font: xft:Droid Sans Mono for Powerline:size=12
!URxvt*letterSpace: -2
URxvt.boldfont:     xft:Bitstream Vera Sans Mono:Bold:size=16:antialias=true

! emulate XTerm for proper recognition of key combinations in Vim
!URxvt.keysym.Up              : \033[A  !breaks arrow keys in Vim
!URxvt.keysym.Down            : \033[B  !breaks arrow keys in Vim
!URxvt.keysym.Right           : \033[C  !breaks arrow keys in Vim
!URxvt.keysym.Left            : \033[D  !breaks arrow keys in Vim
!URxvt.keysym.Page_Up         : \033[5~ !breaks scrolling in Rxvt
!URxvt.keysym.Page_Down       : \033[6~ !breaks scrolling in Rxvt
!URxvt.keysym.Home            : \033[H  !breaks navigation in Vim
!URxvt.keysym.End             : \033[F  !breaks navigation in Vim
!URxvt.keysym.S-Up             : \033[1;2A
!URxvt.keysym.S-Down           : \033[1;2B
!URxvt.keysym.S-Right          : \033[1;2C
!URxvt.keysym.S-Left           : \033[1;2D
!URxvt.keysym.S-Page_Up       : captured by terminal for scrolling
!URxvt.keysym.S-Page_Down     : captured by terminal for scrolling
URxvt.keysym.S-Home           : \033[1;2H
URxvt.keysym.S-End            : \033[1;2F
URxvt.keysym.M-Up             : \033[1;3A
URxvt.keysym.M-Down           : \033[1;3B
URxvt.keysym.M-Right          : \033[1;3C
URxvt.keysym.M-Left           : \033[1;3D
URxvt.keysym.M-Page_Up        : \033[5;3~
URxvt.keysym.M-Page_Down      : \033[6;3~
URxvt.keysym.M-Home           : \033[1;3H
URxvt.keysym.M-End            : \033[1;3F
URxvt.keysym.M-S-Up           : \033[1;4A
URxvt.keysym.M-S-Down         : \033[1;4B
URxvt.keysym.M-S-Right        : \033[1;4C
URxvt.keysym.M-S-Left         : \033[1;4D
!URxvt.keysym.M-S-Page_Up     : seen as Rxvt.keysym.S-Page_Up
!URxvt.keysym.M-S-Page_Down   : seen as Rxvt.keysym.S-Page_Down
URxvt.keysym.M-S-Home         : \033[1;4H
URxvt.keysym.M-S-End          : \033[1;4F
URxvt.keysym.C-Up             : \033[1;5A
URxvt.keysym.C-Down           : \033[1;5B
URxvt.keysym.C-Right          : \033[1;5C
URxvt.keysym.C-Left           : \033[1;5D
URxvt.keysym.C-Page_Up        : \033[5;5~
URxvt.keysym.C-Page_Down      : \033[6;5~
URxvt.keysym.C-Home           : \033[1;5H
URxvt.keysym.C-End            : \033[1;5F
URxvt.keysym.C-S-Up           : \033[1;6A
URxvt.keysym.C-S-Down         : \033[1;6B
URxvt.keysym.C-S-Right        : \033[1;6C
URxvt.keysym.C-S-Left         : \033[1;6D
!URxvt.keysym.C-S-Page_Up     : seen as Rxvt.keysym.S-Page_Up
!URxvt.keysym.C-S-Page_Down   : seen as Rxvt.keysym.S-Page_Down
URxvt.keysym.C-S-Home         : \033[1;6H
URxvt.keysym.C-S-End          : \033[1;6F
URxvt.keysym.M-C-Up           : \033[1;7A
URxvt.keysym.M-C-Down         : \033[1;7B
URxvt.keysym.M-C-Right        : \033[1;7C
URxvt.keysym.M-C-Left         : \033[1;7D
URxvt.keysym.M-C-Page_Up      : \033[5;7~
URxvt.keysym.M-C-Page_Down    : \033[6;7~
URxvt.keysym.M-C-Home         : \033[1;7H
URxvt.keysym.M-C-End          : \033[1;7F
URxvt.keysym.M-C-S-Up         : \033[1;8A
URxvt.keysym.M-C-S-Down       : \033[1;8B
URxvt.keysym.M-C-S-Right      : \033[1;8C
URxvt.keysym.M-C-S-Left       : \033[1;8D
!URxvt.keysym.M-C-S-Page_Up   : seen as Rxvt.keysym.S-Page_Up
!URxvt.keysym.M-C-S-Page_Down : seen as Rxvt.keysym.S-Page_Down
URxvt.keysym.M-C-S-Home       : \033[1;8H
URxvt.keysym.M-C-S-End        : \033[1;8F

!redefine color to use tango theme in vim
!Black
URxvt.color0: #705b5b
URxvt.color8: #555753
!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

Last edited by ssfdust (2015-09-22 04:03:27)


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

Offline

#11 2015-09-29 19:04:58

drgn
Member
From: tmplt @ freenode
Registered: 2015-08-13
Posts: 13

Re: Powerline fonts for Urxvt.

I'm also having some trouble with urxvt + powerline, even thought it works on the another Arch system perfectly. I'm using the official repo's rxvt-powerline, and the powerline fonts from https://github.com/powerline/powerline. gvim confirms that they work, but there are some issues with urxvt: https://i.imgur.com/dk7Rssz.png.

This is my .Xresources which I load with xrdb (I just changed to Terminess Powerline, and added the two last settings, but the problem persists):

#include "/home/tmplt/.colors/earth"

! ----------------------------------------------- ! 
! urxvt                                           !
! ----------------------------------------------- !  

! Free <c-s> key binds
URxvt.iso14755: false
URxvt.iso14755_52: false

URxvt.scrollBar: false
URxvt.internalBorder: 4
URxvt.font: xft:Terminess Powerline:style=Regular
URxvt.letterspace: -2

! More Xft stuff
!Xft.dpi: 96
!Xft.antialias: true
!Xft.rgba: rgb
!Xft.hinting:true
!Xft.hintstyle: hintslight

! Extensions (~/.urxvt/ext/)
URxvt.perl-lib: ~/.urxvt/ext/
URxvt.perl-ext-common: default,url-select,resize-font

URxvt.resize-font.smaller: C-Down
URxvt.resize-font.bigger:  C-Up

URxvt.utf8: true
URxvt.locale: true

My other system doens't have any special settings or anything. I'm not entirely sure what I've missed.

Offline

Board footer

Powered by FluxBB