Debian system font settings

Source: Internet
Author: User
I heard about Debian, so I installed it for a try. The advantage has not been found, but the font is too ugly. After two days, I lost the default Chinese text of the system. Depressed. I was about to give up and change back to FC10. I accidentally found the posts of the two friends and integrated them. I just set the font. I would like to thank both of you (forget who it is, hey ). The following is

 

I heard about Debian, so I installed it for a try. The advantage has not been found, but the font is too ugly. After two days, I lost the default Chinese text of the system. Depressed. I was about to give up and change back to FC10. I accidentally found the posts of the two friends and integrated them. I just set the font. I would like to thank both of you (forget who it is, hey ). The following is the process of installing the font (the following are all root users ):

 

1. install the MS font

Cd/usr/share/fonts

Mkdir zh_CN

Copy the MS font file (simsun. ttc tahoma. ttf verdana. ttfverdanab. ttf verdanaz. ttf tahomabd. ttfverdanai. ttf) to the zh_CN Directory, enter zh_CN, and run the following commands in sequence:

Cd zh_CN

Chmod 755 *

Mkfontscale

Mkfontdir

Fc-cache

2. change the fonts. conf file and add the directory for adding the font.

Find the fonts. conf file in the/etc/fonts directory and add the following line;

/Usr/share/fonts/zh_CN

The following is an example after successful addition;

/Usr/share/fonts/zh_CN

/Usr/share/fonts

3. change the/etc/X11/xorg. conf file;

Add the following line in FontPath:

FontPath "/usr/share/fonts/zh_CN"

4. press Ctrl + Alt + Backspace to restart X-windows, and then set it in "system", "preferences", and "font". Note that there are some important points in setting, otherwise, the effect is still unsatisfactory. (Of course, you can set it based on your preferences)

Note 1: in the font options, all fonts are set to 9. application font: SANS, document font: Tahoma, desktop font: Verdana, window title font: Sans Bold, and width font: verdana Bold.

Note 2: in the font rendering and selection details, "smooth" should be selected "none". This is very important, otherwise the English text will experience virtual; fine-tuning: medium.

5. Firefox settings:

Default Tahoma font, size 14;

Advanced: proportional font: unlined font size 14

Linefeed font: Verdana

Unlined font: Tahoma

Same width font: Verdana size 12

Screen resolution: 96 minimum font size: 12

 

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.