You are not logged in.

#1 2013-02-01 01:30:46

Registered: 2013-02-01
Posts: 2

xterm do not show utf-8 char with font Inconsolata

I'm trying to use Inconsolata font in xterm

xterm*faceName: Inconsolata

but it is not show utf-8 chars

like this file … 8-demo.txt

just like this picture

how to let xterm show these chars?


#2 2013-02-01 01:34:45

From: .nz
Registered: 2009-05-09
Posts: 21,187

Re: xterm do not show utf-8 char with font Inconsolata

Inconsolata is an xft font.

Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438


#3 2013-02-01 09:55:39

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

Re: xterm do not show utf-8 char with font Inconsolata

Xterm is my favorite terminal emulator.

Boxes instead of characters in xterm usually mean the font does not contain the glyphs (characters).  Not counting bold and italic font faces, xterm doesn't allow more than two fonts, one for the normal font and one for the double-wide character (CJK) font.  The best you can do with xterm, if you want to see many of the characters, is to choose fonts with a wide range included.

My default fonts for xterm:

xterm*VT100*cjk_width:  true
xterm*VT100*faceName:  DejaVu Sans Mono:style=Book:size=8:antialias=false
xterm*VT100*faceNameDoublesize:  WenQuanYi Bitmap Song:style=Regular:size=8

Urxvt is better for the test text because you can create a ladder of fonts.  If the first selection does not have the character, the next font is tried:

URxvt*font:  xft:DejaVu Sans Mono:style=Book:size=8, \
             xft:Droid Sans Fallback:style=Regular, \
             xft:Droid Sans Japanese:style=Regular, \

I have not got around to the fine tuning of Urxvt.  I am not too fond of the Droid fonts, but they do serve well as fallback fonts.


Board footer

Powered by FluxBB