You are not logged in.

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

tywtyw2002
Member
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

.Xdefaults
xterm*faceName: Inconsolata

but it is not show utf-8 chars

like this file http://www.cl.cam.ac.uk/~mgk25/ucs/exam … 8-demo.txt

just like this picture
http://i.imm.io/ULLr.png

how to let xterm show these chars?

Offline

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

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

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

Inconsolata is an xft font.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

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

thisoldman
Member
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:
taGIwbA

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:
taGIwbQ

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

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.

Offline

Board footer

Powered by FluxBB