Ubuntu box next to the best way to solve the Chinese show

First, the problem analysis

As the Linux system does not include the relevant Chinese font library, rather than the system does not support Chinese or Chinese garbled, thus indicating to us is a block children

Second, the solution

1, from the window system font library copy in the library needs to Linux system

windows font library path: C: \ Windows \ Fonts

Here I chose Arial simsun.ttc this file

2, upload to a Linux system

2.1 Create a folder for storing font library to add a font directory in linux ( Linux the default font directory: / usr / report this content share / Fonts )

So we jump to the above directory and create a directory:

cd /usr/share/fonts——>mkdir fontpackages

2.2 Copy the font library to the new font library catalog

cp simsun.tcc /usr/share/fonts/fontpackages

3, loading font library font

fc-cache -fv

4. All of the above Linux fonts

fc-list

Up to now, has added new fonts to Linux in, and reboot the system can use these fonts, we selected here are imported from the windows, or you can download the font library resources from the network, the specific choice of which way to choose, as appropriate, .

 

Guess you like

Origin www.cnblogs.com/qinlangsky/p/11445296.html