You are not logged in.
I'm having trouble with Inconsolata-dz for Powerline rendering the powerline arrows properly with dzen and urxvt. Terminator and Chromium render the powerline arrows just fine by default though, and Firefox works after selecting the Inconsolata-dz for Powerline font. Terminator displays them with tmux and vim-airline, Firefox and Chromium display them just fine in this window as I'm typing this. dzen2 and urxvt render blocks.
I've checked the font glyphs with gucharmap and the powerline characters are there where they should be (U+E0A0: , U+E0A1: , U+E0A2: , U+E0B0: , U+E0B1: , U+E0B2: , U+E0B3: ).
Relevant line in .Xdefaults:
URxvt*font: xft:Inconsolata-dz for Powerline:pixelsize=13:antialias=true:hinting=true!
URxvt*boldFont: xft:Inconsolata-dz for Powerline:pixelsize=13:antialias=true:hinting=true:bold
URxvt*italicFont: xft:Inconsolata-dz for Powerline:pixelsize=13:antialias=true:hinting=true:italic
URxvt*bolditalicFont: xft:Inconsolata-dz for Powerline:pixelsize=13:antialias=true:hinting=true:bold:italicRelevant lines in .Xresources:
URxvt.font:xft:Inconsolata-dz for Powerline:pixelsize=11:antialias=true
dzen2.font:xft:Inconsolata-dz for Powerline:pixelsize=11:antialias=true:hinting=trueAdjusting the font sizes for these works with Urxvt and dzen, but they don't want to render the unicode glyphs!
I downloaded this font from this link and added it to ~/.fonts, then ran
fc-cache -vf ~/.fontsand then
xrdb -merge ~/.Xresourcesthen I restarted X to be sure. Urxvt is compiled with unicode3 and xft as well (it's from the default Arch repos).
Any ideas? This is really starting to frustrate me.
Offline
Heh, I fought with this for awhile yesterday as well...
1. Downloaded "Inconsolata+for+Powerline.otf" and placed in ~/.fonts
2. 'fc-cache -vf ~/.fonts'
3. .Xresources line. I think this was the key (but font management is a bit of a mystery to me, so I'm not 100% sure)
URxvt*font: xft:Inconsolata:size=13, xft:Inconsolata for Powerline4. 'xrdb -merge ~/.Xresources'
5. Added enable line for airline (not sure if powerline needs the same thing) in .vimrc:
" Allow patched powerline fonts to be used
let g:airline_powerline_fonts = 16. Exit all terminals/tmux sesions and restart X.
That got it working for me for rxvt-unicode/urxvt and vim-airline (uses same fonts as powerline).
Scott
Last edited by firecat53 (2013-08-19 01:51:37)
Offline
I commented out the font lines in .Xdefaults and changed them to this in .Xresources:
URxvt*font:xft:Inconsolata:size=9, xft:Inconsolata-dz for Powerline
dzen2*font:xft:Inconsolata:size=9, xft:Inconsolata-dz for PowerlineNo change re:powerline, but the font size still changes. I've also tried variations like this to make sure the font was properly specified:
URxvt*font:xft:Inconsolata-dz:size=9, xft:Inconsolata-dz for Powerline
dzen2*font:xft:Inconsolata-dz:size=9, xft:Inconsolata-dz for Powerlineand below, to make sure the dashes were escaped:
URxvt*font:xft:Inconsolata:size=9, xft:Inconsolata\-dz for Powerline
dzen2*font:xft:Inconsolata:size=9, xft:Inconsolata\-dz for PowerlineI've also tried variations in between all of these to no avail.
One last thing: I downloaded the plain inconsolata font that you used from github. I tried using that and following all of your steps, but it didn't work either.
Do you have a dotfile git repo I could look at and clone to a test user acct? edit oops, just saw your sig. testing the repo out now. edit2 second oops. you don't have your dotfiles there.
Last edited by f8b3c6482265746f (2013-08-19 03:34:04)
Offline
Keeping the thread updated:
* I've tried different font sizes (9-15), and none of them work.
* I googled "inconsolata for powerline xresources xdefaults site:github.com", and none of the configurations work, I tried both .Xresources and .Xdefaults (not at the same time)
* I tried the aur package ttf-inconsolata-dz-powerline. This doesn't work either.
I can't think of anything left that could go wrong. I run fc-cache -vf ~/.fonts and xrdb -merge [...], and restart X, but these don't work. Chromium and terminator both pick up the fonts though.
edit
Just thinking out loud here:
So I have the correct font, I know this because terminator and chromium load them and display the special symbols. What I'm not sure about is why terminator and chromium load this font while urxvt and dzen don't. I might have specified for terminator through its configuration to use this font specifically (can't remember because I've been working on this the past two days), but I know that I didn't with chromium. So I'm not sure if .Xdefaults/.Xresources is loading the font or not. If X is loading the font, then it's a problem with dzen and urxvt (not likely, it's just unicode, and it's well, rxvt-unicode), if X isn't loading the font then it's likely a problem with X or how the .Xdefaults/.Xresources files were set up.
I'm really not sure. I'm really open to anything here.
edit 2
I created a new user to get rid of any potential configuration problem specific to my ~. I copied Inconsolata-dz+for+Powerline.otf into /home/test/.fonts, .Xresources into /home/test and .tmux.conf into /home/test (my tmux config has powerline symbols in the status line). I also created a .xinitrc with:
xrdb -merge ~/.Xresources
exec fluxboxThen I ran "fc-cache -vf ~/.fonts", and "startx". The .Xresources had only this line, followed by the solarized .Xresources lines:
URxvt*font: xft:Inconsolata-dz for Powerline:pixelsize=10I also tried this:
URxvt*font: xft:Inconsolata-dz:pixelsize:10, xft:Inconsolata-dz for PowerlineStill nothing. Is there anything I could be missing here? I know urxvt is using inconsolata-dz because the quotes are vertical and the font sizes change, it just can't display the special characters. But terminator, firefox and chromium can. I'm confused and I'm thinking about filing a bug report. (bolded because this is turning into a long post and it's important to see that urxvt is using the font, but can't render the special glyphs. also, it's late, I'm tired, and it seems like a good use of the bold tags)
Last edited by f8b3c6482265746f (2013-08-19 10:40:28)
Offline
bump
Offline
Hi,
I've had the same problem, and I couldn't find a solution to get it working properly with Inconsolata-dz. But, using fontpatcher.py on Bitstream Vera Sans Mono, it worked. so now I have a fully functionnal Bitstream Vera Sans Mono for Powerline under urxvt. I don't know why but I was unable to do the same for Inconsolata or Monaco fonts...
fontpatcher.py Vera.ttf Offline