You are not logged in.

#1 2012-03-16 03:44:00

aclindsa
Member
Registered: 2011-01-29
Posts: 30
Website

[SOLVED] Urxvt + Inconsolata Displaying UTF-8 Characters Incorrectly

I use the Inconsolata font with urxvt and have noticed that some characters are displayed improperly. For example, an "en dash" (U+2013) appears as a capital N with a tilde over it. It appears that this is because Inconsolata doesn't support anything other than the basic latin characters. Is there any way to allow urxvt to "fall back" on another font for rendering those specific characters?

Last edited by aclindsa (2012-03-16 16:42:35)

Offline

#2 2012-03-16 04:49:22

bananas4370
Member
From: Warwick QLD Australia
Registered: 2011-10-25
Posts: 27

Re: [SOLVED] Urxvt + Inconsolata Displaying UTF-8 Characters Incorrectly

The FAQ should help.

RXVT REFERENCE


Linux Counter: #478369
Don't fix it if it ain't broken, don't break it if you can't fix it.

Offline

#3 2012-03-16 16:14:05

aclindsa
Member
Registered: 2011-01-29
Posts: 30
Website

Re: [SOLVED] Urxvt + Inconsolata Displaying UTF-8 Characters Incorrectly

Unfortunately, the "-fn" switch (or *font: in .Xresources) does not seem to work properly with Inconsolata. For example, if I do the following:

urxvt -fn "xft:Terminus"

The characters display properly, but if I add Inconsolata ahead of that, like so:

urxvt -fn "xft:Inconsolata,xft:Terminus"

I get the garbage characters. I have experimented with different "fallback" fonts in all different orders, sizes, etc. and whenever Inconsolata is first, I see the garbage chars. The more I look into it, the more it looks like the wrong characters are being reported to urxvt for Inconsolata.

Offline

#4 2012-03-16 16:41:42

aclindsa
Member
Registered: 2011-01-29
Posts: 30
Website

Re: [SOLVED] Urxvt + Inconsolata Displaying UTF-8 Characters Incorrectly

Upgrading Inconsolata did the trick. I suppose somehow it *was* reporting the wrong characters. Too bad the new version seems to be spaced wider... I liked the spacing on the old one better.

Offline

#5 2012-03-16 18:28:04

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

Re: [SOLVED] Urxvt + Inconsolata Displaying UTF-8 Characters Incorrectly

man urxvt | less -p letterSpace

smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-03-16 18:53:04

aclindsa
Member
Registered: 2011-01-29
Posts: 30
Website

Re: [SOLVED] Urxvt + Inconsolata Displaying UTF-8 Characters Incorrectly

Hmm, I didn't know about that option. Thanks! Unfortunately, it doesn't seem to allow decimal values, and -1 tightens up the spacing too much for my tastes.

Offline

Board footer

Powered by FluxBB