Configure Ubuntu9.04 font and fcitx Input Method

Source: Internet
Author: User
Today, I upgraded to the official Ubuntu version. As in the past, I have customized Chinese settings according to my own habits. Including the use of Chinese font, penguin Chinese Input Method, gedit to edit Chinese text files, because many articles on the Internet are 7. x or 8. the file name and path of Article x are not the same, so I wrote a memo today to avoid forgetting it next time. I. Chinese font: the default font of Ubuntu9.04 official edition. I personally don't like it very much. It feels too rough and fuzzy. Translated by Wenquan

Today, we upgraded to the official Ubuntu 9.04 version. As in the past, we have customized Chinese settings according to our own habits. Including the use of Chinese font, penguin Chinese Input Method, gedit to edit Chinese text files, because many articles on the Internet are 7. x or 8. the file name and path of Article x are not the same, so I wrote a memo today to avoid forgetting it next time.

I. Chinese font:

I personally don't like the default font of Ubuntu 9.04 official version. It feels too rough and fuzzy. The font is changed to the font of Wenquan translation, and the English is not beautiful, so it is replaced with the ya Yahei Consolas Hybrid, which contains Lucida Grande. ttf and Microsoft YaHei. ttf: the former is an English font with equal width and the latter is a Chinese font. You do not need to set the Chinese and English font separately when using this font, so that the UI, web pages, and terminal fonts can be unified.

In addition, you often need to share Office documents, basically using, only is not enough, so you have to copy simsun and other fonts under XP. (I cannot consider the font copyright issue if I use dxp)

Configuration process:

1. Copy the XP Font:

Sudo mkdir-p/usr/share/fonts/zh_CN/TrueType
Sudo cp/media/win_c/WINDOWS/Fonts/simsun. ttc/usr/share/fonts/zh_CN/TrueType/
Sudo cp/media/win_c/WINDOWS/Fonts/tahomabd. ttf/usr/share/fonts/zh_CN/TrueType/
Sudo cp/media/win_c/WINDOWS/Fonts/tahoma. ttf/usr/share/fonts/zh_CN/TrueType/
Sudo cp/media/win_c/WINDOWS/Fonts/verdanab. ttf/usr/share/fonts/zh_CN/TrueType/
Sudo cp/media/win_c/WINDOWS/Fonts/verdanai. ttf/usr/share/fonts/zh_CN/TrueType/
Sudo cp/media/win_c/WINDOWS/Fonts/verdana. ttf/usr/share/fonts/zh_CN/TrueType/
Sudo cp/media/win_c/WINDOWS/Fonts/verdanaz. ttf/usr/share/fonts/zh_CN/TrueType/

2. Download The font

Http://rapidshare.com/files/34563809/YaHei.Consolas.1.11b.zip

Decompress the package, copy it to the/usr/share/fonts/zh_CN/TrueType directory, and rename it YaHei_Consolas.ttf:
Sudo cp YaHei. Consolas.1.11b. ttf/usr/share/fonts/zh_CN/TrueType/YaHei_Consolas.ttf

3. Generate the font directory list and other commands:
Sudo chmod 644/usr/share/fonts/zh_CN/TrueType /*
Cd/usr/share/fonts/zh_CN/TrueType/
Sudo mkfontscale
Sudo mkfontdir
Sudo fc-cache/usr/share/fonts/zh_CN/TrueType/

4. modify the configuration file

Sudo gedit/etc/fonts/conf. d/69-language-selector-zh-cn.conf

Locate the row and add the YaHei Consolas Hybrid in three places.

For example:

YaHei Consolas Hybrid

Bitstream Vera Sans Mono

DejaVu Sans Mono

WenQuanYi Zen Hei

Ar pl UMing CN

Ar pl ShanHeiSun Uni

WenQuanYi Bitmap Song

Ar pl UKai CN

Ar pl ZenKai Uni

5. Restart x-window.

Normally, you should be able to see the effect without restarting x-window. You can check the software menus, webpage content, and virtual terminal fonts. In addition, when you open the Word document, can also be displayed normally.

Related Article

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.