Install Fonts on Linux

Source: Internet
Author: User

1. Widonws download font files to Linux

WINDOWS has more fonts and its font files are located in C:\WINDOWS\Fonts. Copy the appropriate font from it to the folder under/usr/share/font/of the Linux system. Take the Arial font as an example:

# mkdir /usr/share/fonts/arial# cp arial*.ttf /usr/share/fonts/arial/
2. Set the cache for the font you just added to make it valid
# cd /usr/share/font/arial# fc-cache -fv

With this setting, you can choose the font in the system-preferences-appearance-fonts in the Gnome interface.

3. Set the Gunplot selection path for Arial

The error on the homepage of this article is caused by the program call Gunplot, it is necessary to let Gunplot recognize the path of the Arial font.

$ export GDFONTPATH=/usr/share/fonts/arial$ export GNUPLOT_DEFAULT_GDFONT="arial"

Copy the font file to the Linux server, and then call Fc-cache to update
Lists all installed Chinese fonts, if no Chinese fonts have been installed

#fc-list :lang-zh宋体,SimSun:style=Regular

Look how the fonts go.
Fc-match arial-s

View the local language settings
Locale

Because there is no need to modify lc_ctype globally, it would be nice to add it in front of the command. To make it easy to write an alias
Alias Casperjs= ' Lc_ctype=en_us. UTF-8 Casperjs '

Install Fonts on 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.