You are not logged in.

#1 2010-03-24 23:25:08

kyletreubig
Member
Registered: 2009-09-13
Posts: 9

[Solved] Issues with Inconsolata font

Hi,

I installed the Inconsolata font from the AUR because I kept hearing a lot of good things about it.  I installed it, it shows up in fc-list, shows up in Firefox, etc.  But I cannot get it working for urxvt or gvim.  I had the following line in my .Xresources file (and many other derivatives of it):

urxvt.font: xft:inconsolata:pixelsize=11

However, it always seemed to default back to Bitstream Vera Sans Mono.

Similarly, I cannot get it to work in gvim (set guifont=Inconsolata does nothing).

For the record, I am using Openbox WM on Arch x86_64

I'd appreciate any insight into this matter.

Kyle

Last edited by kyletreubig (2010-03-25 02:14:57)

Offline

#2 2010-03-24 23:53:55

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [Solved] Issues with Inconsolata font

Why did you install from AUR? Inconsolata is in [community] (ttf-inconsolata).
If you haven't restarted X or done an $(xrdb ...):

$ xrdb ~/.Xdefaults

or ~/.Xresources in your case.

Also,

# fc-cache

if you haven't already.

Last edited by Peasantoid (2010-03-24 23:55:58)

Offline

#3 2010-03-25 00:53:49

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] Issues with Inconsolata font

I have:

urxvt*font:             xft:Inconsolata:size=10:antialias=true:hinting=true

which works with 'rxvt-unicode-cvs 20100321-1' from the AUR.

Quite honestly, I forget why I went with that version of urxvt; I do know it solved some minor irritation for me.

Last edited by thisoldman (2010-03-25 00:56:39)

Offline

#4 2010-03-25 01:40:46

kyletreubig
Member
Registered: 2009-09-13
Posts: 9

Re: [Solved] Issues with Inconsolata font

I installed the version from AUR because someone linked to it in a post.  It never occured to me that the post was quite old and to check the regular repositories (d'oh).

It's working now with the version from community.

Now to figure out why the font is different for folders with "ls --color=auto"...

Thanks for the help!

Offline

#5 2010-03-25 01:45:52

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [Solved] Issues with Inconsolata font

kyletreubig wrote:

Now to figure out why the font is different for folders with "ls --color=auto"...

What do you mean 'different'?

In general, if you have a second, related problem, you should expound upon it as you would the first.

Offline

#6 2010-03-25 01:53:52

kyletreubig
Member
Registered: 2009-09-13
Posts: 9

Re: [Solved] Issues with Inconsolata font

Peasantoid wrote:
kyletreubig wrote:

Now to figure out why the font is different for folders with "ls --color=auto"...

What do you mean 'different'?

In general, if you have a second, related problem, you should expound upon it as you would the first.

Right after I posted that, I did some research and I believe the problem is that urxvt is trying to display folders with a bold font-weight, and there is no bold Inconsolata style.  When I run "ls --color=auto", file names are displayed in the Inconsolata font as expected.  Folder names are displayed in a larger sans serif font of some sort.

I got it straightened out (actually, while I was working on this post).  I thought I had set urxvt.boldFont before, but I must have had something wrong.  I had to make sure that I had this line:

urxvt.boldFont: xft:inconsolata:pixelsize=13

Everything is good now. big_smile

Offline

#7 2010-03-25 01:58:05

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [Solved] Issues with Inconsolata font

Really? I don't need that for some reason. Bold displays fine here without that line.

Post your ~/.Xdefaults (or ~/.Xresources)?

Offline

#8 2010-03-25 02:05:59

kyletreubig
Member
Registered: 2009-09-13
Posts: 9

Re: [Solved] Issues with Inconsolata font

It works for me without that line as well.  The line was in my .Xresources as a remnant from when I was previously using Bitstream Vera Sans Mono, and I thought I had changed it to use Inconsolata.  My guess is I had something misspelled and it reverted to some default.

Offline

Board footer

Powered by FluxBB