您的位置:首页 > 运维架构 > Linux

Linux系统下安装中文输入法 fcitx

2013-02-21 11:47 801 查看


fctix输入法安装

sudo apt-get -y remove ibus
sudo apt-get -y remove scim
sudo apt-get -y install fcitx
im-switch -s fcitx -z default
mkdir ~/.fcitx
fcitx

安装后显示方格乱码,是因为没有指定相应的系统已有字体

用命令 fc-list 在系统终端查询系统已有字体,选择其中带汉字的字体 或者其它汉字字体

fc-list 结果:

Bitstream Charter:style=Bold Italic

Mukti Narrow,মুক্তি:style=Regular

Pothana2000:style=Regular,Pothana2000

DejaVu Sans:style=Bold Oblique

Nimbus Roman No9 L:style=Regular

AR PL UMing TW:style=Light

Loma:style=Oblique

Century Schoolbook L:style=Bold

Century Schoolbook L:style=Italic

Mukti Narrow,মুক্তি পাতনা,Mukti Narrow Bold:style=Regular,Bold

Khmer OS:style=Regular

AR PL UMing HK:style=Light

WenQuanYi Micro Hei Mono,文泉驛等寬微米黑,文泉驿等宽微米黑:style=Regular

FreeSerif:style=BoldItalic,FettKursiv,NegritaCursiva,GrasItalique,VetCursief,ОбычныйКурсив,polkrepko ležeče

AR PL UMing CN:style=Light

Norasi:style=BoldItalic

gargi:style=Medium

Nimbus Sans L:style=Regular

URW Palladio L:style=Italic

Garuda:style=Oblique

Meera:style=Regular

Mallige:style=Bold

然后修改文件 /etc/fonts/conf.d/49-sansserif.conf

修改倒数第四行<string>sans-serif</string>中得sans-serif为已有的字体

例如: 我的修改为 <string>WenQuanYi Micro Hei</string>

然后,reboot 即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: