一、字型設定
參考gentoo wiki上關於字型的文章
http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts#Useful_topics
參考中文gentoo wiki的HOWTO上關於字型的文章
http://zh.gentoo-wiki.com/Index:HOWTO#.E5.AD.97.E4.BD.93
參考字型組態工具fontconfig的使用者手冊
http://fontconfig.org/fontconfig-user.html
字型的存放目錄
/usr/share/fonts
fontconfig設定檔
/etc/fonts/fonts.conf (system wide)
~/.fonts.conf
可能要用到的字型工具
emerge mkfontdir mkfontscale
下載好看的英文字型:
emerge ttf-bitstream-vera corefonts
下載好看的中文字型:
emerge media-fonts/wqy-bitmapfont
在xorg.conf中Section "Files"中加入新增的字型目錄
使用fc-cache更新系統字型
使用xlsfonts檢查字型是否已經存在
二、fcitxIME
emerge fcitx
touch /etc/X11/xinit/xinitrc.d/100-xinputrc
chmod +x /etc/X11/xinit/xinitrc.d/100-xinputrc
100-xinputrc檔案內容
cat /etc/X11/xinit/xinitrc.d/100-xinputrc
# !/bin/bash
# This script set the "XIM" and some other environment variable,
# then starts fcitx automatically when loading X
XIM="fcitx"
XIM_PROGRAM="fcitx"
XIM_ARGS="-d"
XMODIFIERS="@im=fcitx"
GTK_IM_MODULE="fcitx"
export XIM XIM_PROGRAM XMODIFIERS GTK_IM_MODULE
# start xim server
$XIM_PROGRAM $XIM_ARGS &
修改系統locale
LC_CTYPE="zh_CN"
* You should export the following variables to use fcitx
* export XMODIFIERS="@im=fcitx"
* export XIM=fcitx
* export XIM_PROGRAM=fcitx
*
* If you want to use WuBi or ErBi
* cp /usr/share/fcitx/data/wbx.mb ~/.fcitx
* cp /usr/share/fcitx/data/erbi.mb ~/.fcitx
* cp /usr/share/fcitx/data/tables.conf ~/.fcitx
*
* Note that fcitx only works in the zh_CN locale.