The process of adding fonts to Linux

Source: Internet
Author: User

Just to talk about the process, as to the specific principles have not yet figured out.

1. First you have to have font files, TTF or TTC format can be

We can copy the font file from the directory of WINDOWS C:\WINDOWS\Fonts\, for example, we get the font file is Segoui.ttf

2. Copy this font file to the/usr/share/fonts/directory of Linux or the subdirectory of the directory

PS: Do not try the other directories can

For example, we copy it to the/usr/share/fonts/segoui/directory:

sudo cp segoui.ttf-t/usr/share/fonts/segoui/

3. Switch to the directory where the fonts we copied in the previous step

cd/usr/share/fonts/segoui/

4. Create a font index

sudo mkfontscale

After the command executes, you can see that a text file named Fonts.scale is generated in the current directory.

5. Create the index of the font file in the directory

sudo mkfontdir

This is what the manual says, no scrutiny.

A text file named Fonts.dir will be generated in the current directory when the command finishes executing

6. Building font Information cache files

sudo fc-cache

Also did not delve into the principle of the execution of the command, anyway such a process down, font even if the installation is complete

7. End

None of them delve into the principle of the above command execution, and if you want to know more details, you need to look at the manual of each command.

To view installed fonts, you can use the Fc-list command.

The process of adding fonts to Linux

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.