让Mac OS X 中的 mlterm和其他 xterm 正确显示 unicode 编码的中文

X Window 下最烦人的就是字体配置了,我自己装了个中文unifont解决问题。

  1. 安装中文字体

下载炎黄-Unifont点阵字体,然后安装:

cd ~/
mkdir .fonts
cp /path/to/yhunifont.bdf ~/.fonts
mkfontdir

add this line to your .xinitrc, make sure it is before xterm command lines

xset +fp ~/.fonts

  1. mlterm 配置
  • ~/.mlterm/main

    bg_color=black
    fg_color=white
    geometry=80x24
    receive_string_via_ucs = true
    logsize = 1024
    scrollbar_mode = right
    scrollbar_view_name = sample
    mod_meta_mode = esc
    fontsize = 13
    encoding = UTF-8
    use_multi_column_char = true
    col_size_of_width_a=1
    use_variable_column_width = false

  • ~/.mlterm/font

    ISO8859-1 = -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1;
    ISO10646_UCS4_1 = -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1;
    ISO10646_UCS4_1_BIWIDTH = -wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1;   

最后的效果截图:

mlterm 炎黄-Unifont点阵字体

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment