Use the font in ubuntu7.10

Source: Internet
Author: User
1. Get the font and copy it to/usr/share/fonts/zh_CN. If there is no zh_CN, create a new one. Next (very important), change the font permission to 755 or 7772. run sudomkfontscalesudomkfontdir3. under/usr/share/fonts/zh_CN to copy the configuration file to/etc/fonts/conf. avail/99-myfonts.conf

1. Get the font and copy it to/usr/share/fonts/zh_CN. If there is no zh_CN, create a new one.

Next (very important), change the font permission to 755 or simply 777.

2. Run the command under/usr/share/fonts/zh_CN.
Sudo mkfontscale
Sudo mkfontdir

3. Copy the configuration file to/etc/fonts/conf. avail/99-myfonts.conf.

The configuration files for LCD and flat are slightly different. The details are as follows:

Flat:

CODE:




Serif

DejaVu Serif
Microsoft YaHei



Sans-serif

DejaVu Sans
Microsoft YaHei



Monospace

DejaVu Sans Mono
Microsoft YaHei





Microsoft Yahei


False





Simsun


Microsoft Yahei





Arial


DejaVu Sans Serif




Times


DejaVu Sans Serif




Courier


DejaVu Sans Mono




Helvetica


DejaVu Sans Serif





Zh


En



LCD:

CODE:




Serif

DejaVu Serif
Microsoft YaHei



Sans-serif

DejaVu Sans
Microsoft YaHei



Monospace

DejaVu Sans Mono
Microsoft YaHei





Rgb


True


False


True


Hintfull





Microsoft Yahei


False





Simsun


Microsoft Yahei





Arial


DejaVu Sans Serif




Times


DejaVu Sans Serif




Courier


DejaVu Sans Mono




Helvetica


DejaVu Sans Serif





Zh


En



4. In the/etc/fonts/directory, first Delete the language-selector.conf and then create a soft link pointing to 99-myfont.conf.

Sudo ln-s/etc/fonts/conf. avail/99-myfont.conf language-selector.conf

The original language-selector.conf points to/usr/share/language-selector/fontconfig/zh_CN, if the problem is modified, you can restore it.

5. Run sudo fc-cache-fv to refresh the font cache.

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.