Linux getting started Tutorial: Use a Windows Font in Ubuntu 14.10

Source: Internet
Author: User

Linux getting started Tutorial: Use a Windows Font in Ubuntu 14.10

In fact, any Linux release version has already done a lot of font configuration work, and it is not the best way to discard the default configuration of the system. You can also use the icing on the cake to configure the system font, that is, to keep the original configuration file of the system unchanged, just add a few configuration files for our own needs.

Here, I am going to beautify the font of my new Ubuntu 14.10 system. Considering that many users prefer to compare it with Windows when using Linux, I decided to use the font in Windows to configure Ubuntu to have the same display effect as Windows. The basic idea is as follows:

1. Use the Tahoma font and font on the Ubuntu interface. The English text is Tahoma and the Chinese text is;

2. When using the console and programming, use the Consolas font with the font. The English version is las LAS and the Chinese version is;

3. six common Chinese fonts used in Windows are used:, and. In this way, during the typographical work in Ubuntu, it can achieve the same effect as formatting in Windows;

4. English Serif font with Chinese, Sans-Serif font with Chinese;

5. Enable dot matrix for with a small font size. You do not need to enable dot matrix for other fonts.

Once the target is determined, the specific configuration work is better. The following describes the specific configuration process.

Set system font

A Tool is required to set the system font, that is, the Unity Tweak Tool. In Ubuntu, this Tool is easier to use than the Gnome Tweak Tool. After installing the tool, you can use it to configure the system font. We can see that there are four types of fonts used in the system. The default font and the window title Font are all set to Ubuntu font with the size of 11pt. Here, the Ubuntu font is the UI font, which is often used in the dialog box and menu bar of the program. In Windows, Tahoma corresponds to the Ubuntu font. I set the document font to Sans of 11pt, and set the same width font to Monospace of 12pt. Sans and Monospace can only be regarded as font classes. The specific font is determined by our configuration.

Install Microsoft's English font

Microsoft is a very good company. It opens several sets of English fonts used in its system, such as Arial and Verdena, for free. Of course, these open fonts do not include Tahoma and LAS. In Ubuntu, you can install ttf-mscorefonts-installer directly from the software source. When the software is installed, several English fonts provided by Microsoft are automatically downloaded and installed. For example:

View the System Configuration File

Except for/etc/fonts. conf, the other configuration files are in the/etc/fonts/conf. d directory. Go to the ls directory, and you can see that there are quite a few configuration files, each of which is preceded by a number. For example:

What are the purposes of these numbers? Or what kind of idea does Ubuntu adopt for font configuration? This is a good answer. Just take a look at README. For example:

It can be seen that the configuration files numbered 00 to 09 are mainly used to set the directory for storing fonts, And the configuration files numbered 10 to 19 are used to set global properties in the system, for example, hinting, antialias, and so on. The configuration files numbered 20 to 29 are used to set the display attributes of certain fonts, and the 30 to 39 files are used to replace specific fonts, if some famous fonts are not installed in the system, you can replace them with other similar fonts, 40 to 49 are used to classify fonts, 50 to 59 is to load other configuration files, 60 to 69 is to select a specific font for classification, the latter is too lazy to talk about. We can see that the font configuration idea here is exactly the same as the one I used in the previous article. I used it for reference.

At the same time, we can see from the 50-user.conf file that we can put our configuration file in ~ /. Fonts. conf. d directory. In the subsequent configuration process, my configuration file will follow the same numbering principle.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.