Hang on Linux fontconfig font library

01 , install the font software 

yum - the y-install fontconfig 

 Then copy the font in the past on the line 

 cd / usr / report this content share / Fonts 

 fc - List view This is

 02 , copy the fonts to the specified directory 
cp simsun.ttc   / usr / report this content share / Fonts / 

 Then copy the font in the past on the line 

 cd / usr / report this content share / fonts

 03 , verify the font installation 
fc -list // " Times new Roman " Chinese font has been installed successfully 



used commands: 

mkfontscale        // font expansion 
mkfontdir            // new font directory 
fc -cache - fv // refresh the cache 



Note: 

fonts required permissions and service permissions have been run

For example; permissions to run the service is yutang, font library authority must also be yutang

 

Guess you like

Origin www.cnblogs.com/ipyanthony/p/11106260.html