Gentoo system Chinese font setting and installation of Fcitx Input method

Source: Internet
Author: User
Tags locale

Gentoo system Chinese font setting and installation of Fcitx Input method

Boear | System Related | 2010-7-30 15:45 | 12 Point Hits | 0 comments Linux| gentoo| System | Set up

Gentoo's fully customizable features do really well, of course, there are two sides to everything, strong customization, but also caused another problem, is what things need to do their own, and even Chinese fonts, Chinese input method of these most basic, most commonly used things, need us to install the hands of ourselves. So, the Gentoo system is not destined for lazy people. For me this lazy person, really very painful.

First of all, we have to set the Chinese font, although the project seems to be a bit vast, but actually do it, there is no resemblance to the complex, the use of Gentoo powerful emerge package management system, install software on a word, cool. The only disadvantage is that the compilation takes a lot of time, hoho~

directory where fonts are stored

/usr/share/fonts

Fontconfig configuration file

/etc/fonts/fonts.conf (System wide)

~/.fonts.conf

Font tools that you might want to use

Emerge Mkfontdir Mkfontscale

Download the Good English fonts:

Emerge Ttf-bitstream-vera corefonts

Download the Good Chinese fonts:

Emerge Media-fonts/wqy-bitmapfont

Add a new Font directory to section "Files" in xorg.conf

Using Fc-cache to update system fonts

Use xlsfonts to check if a font already exists

Refer to the article on Gentoo wiki about fonts

Http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts#Useful_topics

Refer to the howto on fonts in Chinese Gentoowiki

http://zh.gentoo-wiki.com/Index:HOWTO#.E5.AD.97.E4.BD.93

Reference Font Configuration Tool Fontconfig's user manual

Http://fontconfig.org/fontconfig-user.html

Then the installation of the Chinese input method

Emerge FCITX

Touch/etc/x11/xinit/xinitrc.d/100-xinputrc

chmod +X/ETC/X11/XINIT/XINITRC.D/100-XINPUTRC

100-XINPUTRC File Contents

Cat/etc/x11/xinit/xinitrc.d/100-xinputrc

#!/bin/bash

# This script set the ' XIM ' andsome other environment variable,

# then starts FCITX automatically whenloading X

Xim= "FCITX"

Xim_program= "FCITX"

xim_args= "-D"

xmodifiers= "@im =fcitx"

Gtk_im_module= "FCITX"

Export XIM Xim_program Xmodifiersgtk_im_module

# Start Xim Server

$XIM _program $XIM _args &

Modify System 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

*

* Ifyou 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 the ZH_CN locale.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.