Add the font to Debian

Source: Internet
Author: User
Add the font for Debian-Debian information for the Linux release. The following is a detailed description. The font of is quite beautiful. Some students have integrated the font of the same width and the font of, making the font more comfortable during programming. Let's replace Debian's ugly default font with this font. The process is simple.

First, find the following three files:

Msyh. ttf (in the Windows \ Fonts directory of Vista)-This file is a Chinese Character + English without line;

Msyhbd. ttf (also in the Windows \ Fonts directory of Vista)-this is also a Chinese Character + NO-line English, but only a black body;

AJU_msyh_cc1.0.ttf;

No file for the font + linefeed font is found yet, so the installation will lose the English letters of the linefeed.

Copy all these files to/usr/local/share/fonts and run sudo fc-cache.

Because the fontconfig font has the highest language priority, and the default nice Bitstream linefeed Font does not have the language attribute of zh-cn, it cannot be found for us, I have not found the solution yet.

Install the pinyin Input Method: sudo apt-get install scim-pinyin. At the same time, this will install a bunch of ugly Chinese characters and replace our fonts. Therefore, we must modify the fontconfig configuration to increase the priority of the font. Note that the Configuration System of the Debian system is modularized. For example, all the font rules are written in/etc/fonts/conf. in the avail directory, and through/etc/fonts/conf. d/, so do not modify the contents in these directories and/etc/fonts. conf, because these files may be changed during system upgrade, the custom changes should be written to/etc/fonts/local. conf or your own. in the fonts directory.

Here, to improve the priority of the font, we write the following/etc/fonts/local. conf:
QUOTE:
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.