gentoo中文字型設定

來源:互聯網
上載者:User
一、字型設定
參考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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.