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