You are not logged in.
Using xterm with the default font, japanese characters show fine. But once I switch xterm to Terminus, I just get boxes:
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
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
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
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
Using that the font looks the same as the default font and not Terminus.
Offline
Using that the font looks the same as the default font and not Terminus.
Are you sure Terminus has CJK glyphs?
Offline
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
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
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
Also I don't get anything when I run "xlsfonts | grep terminus".
Maybe you have Terminus installed in a non-standard fontpath.
Offline
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
The wideFont option seems to be the exception though.
Try the above again after reloading the fontpath with xset fp rehash
Offline
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
Does this help? xset +fp /usr/share/fonts/local
Offline
Ok now it works thank you.
Offline