You are not logged in.

#1 2018-12-20 00:42:07

prabowo
Member
Registered: 2018-12-20
Posts: 1

urxvt unable to render chinese characters/ font

Hai,

I have search my problem through google and this forum, all of the answers pointed to add Chinese font after primary font at .Xresources

but it does not solve my problem, my terminal still unable to show chinese characters.

I have try to install all chinese font listed on https://wiki.archlinux.org/index.php/fonts#Chinese still no luck.

Is there any another package that i need to install first so my terminal can read chinese characters?


Cheers,

~/.Xresources

URxvt.background: #14202E
URxvt.foreground: #aaaaaa 
URxvt.font: xft:Hack:style=Regular:size=9,xft=WenQuanYi Micro Hei Mono Light:style=Light:size=9

URxvt.scrollstyle: rxvt
URxvt*termName: rxvt-256color
URxvt.cursorBlink: True

.xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
exec i3

Offline

#2 2018-12-20 15:15:56

philo
Member
Registered: 2015-01-26
Posts: 275

Re: urxvt unable to render chinese characters/ font

Offline

#3 2018-12-20 21:33:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,697

Re: urxvt unable to render chinese characters/ font

Assuming the font contains the glyphs, try

URxvt.font: xft:Hack:style=Regular:size=20,xft=WenQuanYi Micro Hei Mono Light:style=Light:size=9

(yes, that gets you a ridiculously huge terminal font, but if the chinese glyphs show up, we'll know the cause ;-)

Offline

Board footer

Powered by FluxBB