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