You are not logged in.

#1 2010-12-05 23:29:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

No japanese chars with xterm and Terminus [SOLVED]

Using xterm with the default font, japanese characters show fine. But once I switch xterm to Terminus, I just get boxes:

http://imgur.com/Jb4jM.png

My locale is en_US.utf8 so I don't think that is the problem.


-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code --

Last edited by anonymous_user (2010-12-06 03:01:30)

Offline

#2 2010-12-05 23:50:47

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: No japanese chars with xterm and Terminus [SOLVED]

Try this line in .Xdefaults
xterm*wideFont: -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1

Don't forget to use xrdb after editing.

Offline

#3 2010-12-06 00:08:14

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

Didn't help. Heres what I have for .Xdefaults now:

! Tango color scheme
! Black + DarkGrey
*color0:  #2e3436
*color8:  #555753
! DarkRed + Red
*color1:  #cc0000
*color9:  #ef2929
! DarkGreen + Green
*color2:  #4e9a06
*color10: #8ae234
! DarkYellow + Yellow
*color3:  #c4a000
*color11: #fce94f
! DarkBlue + Blue
*color4:  #3465a4
*color12: #729fcf
! DarkMangenta + Mangenta
*color5:  #75507b
*color13: #ad7fa8
! DarkCyan + Cyan
*color6:  #0b939b
*color14: #00f5e9
! LightGrey + White
*color7:  #d3d7cf
*color15: #eeeeec

*foreground:               #ffffff
*background:               #000000

xterm*faceName:         terminus:pixelsize=9
xterm*wideFont: -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1
xterm*saveLines:        2048

Offline

#4 2010-12-06 00:36:33

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: No japanese chars with xterm and Terminus [SOLVED]

I can't get it to work at all with faceName
Try this combination (12 is the smallest terminus I have)
xterm*font:         -*-terminus-medium-*-12-*
xterm*wideFont: -misc-fixed-medium-r-normal-ja-13-120-75-75-c-120-iso10646-1

Offline

#5 2010-12-06 01:19:55

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

Using that the font looks the same as the default font and not Terminus.

Offline

#6 2010-12-06 01:31:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No japanese chars with xterm and Terminus [SOLVED]

anonymous_user wrote:

Using that the font looks the same as the default font and not Terminus.

Are you sure Terminus has CJK glyphs?

Offline

#7 2010-12-06 01:36:02

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

Urxvt, terminal, terminator, and sakura all were able to show CJK characters while using the terminus font.

And before you suggest I simply switch terminals, I want to fix this issue with xterm.

Offline

#8 2010-12-06 01:53:59

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: No japanese chars with xterm and Terminus [SOLVED]

Terminus doesn't have CJK glyphs, the problem is that by default xterm never uses substitution fonts.

Look through xlsfonts | grep terminus for one to use for the *font string and try it out with just that setting to see if it works. Do the same for the font you select for wideFont.
Once again run xrdb -load ~/.Xdefaults after every change.

Offline

#9 2010-12-06 01:59:01

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

So all the other terminals I tried and even Geany are able to do font substitution automatically?

Also I don't get anything when I run "xlsfonts | grep terminus".

Offline

#10 2010-12-06 02:01:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No japanese chars with xterm and Terminus [SOLVED]

anonymous_user wrote:

Also I don't get anything when I run "xlsfonts | grep terminus".

Maybe you have Terminus installed in a non-standard fontpath.

Offline

#11 2010-12-06 02:14:57

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

I just install terminus-font from community. Afaik the font gets installed to /usr/share/fonts/local though I don't know if thats default path or not.

Anyways if (the lack of) font substitution is why xterm won't show CJK characters then I'll mark this thread as solved.

Offline

#12 2010-12-06 02:23:18

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: No japanese chars with xterm and Terminus [SOLVED]

The wideFont option seems to be the exception though.

Try the above again after reloading the fontpath with xset fp rehash

Offline

#13 2010-12-06 02:34:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

I cannot use xterm*font:         -*-terminus-medium-*-12-* because xterm cannot find the font. And if I use xterm*faceName:         terminus:pixelsize=9 then CJK characters are just shown as boxes.

Running xset fp rehash or even xset fp default has not changed anything.

Offline

#14 2010-12-06 02:47:51

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: No japanese chars with xterm and Terminus [SOLVED]

Does this help? xset +fp /usr/share/fonts/local

Offline

#15 2010-12-06 03:01:13

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: No japanese chars with xterm and Terminus [SOLVED]

Ok now it works thank you.

Offline

Board footer

Powered by FluxBB