查看字体[root@p0-web3]#fc-list/usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf:DejaVuSans,DejaVuSansCondensed:style=CondensedOblique,Oblique/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf:DejaVuSans,DejaVuSansCondensed:style=CondensedBold,Bold/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf:DejaVuSans:style=书/usr/share/fonts/dejavu/DejaVuSans-粗体.ttf:DejaVuSans:style=Bold/usr/share/fonts/dejavu/DejaVuSansCondensed.ttf:DejaVuSans,DejaVuSansCondensed:style=Condensed,Book/usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf:DejaVuWithout-ExtraLight。Sans,DejaVuSansLight:style=ExtraLight/usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf:DejaVuSans,DejaVuSansCondensed:style=CondensedBoldOblique,BoldOblique/usr/share/fonts/dejavu/DejaVuSans-粗斜体。Oblique.ttf:DejaVuSans:style=Oblique/usr/share/fonts/chinese/simfang.ttf:FangSong:style=Regular,Normaali/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf:DejaVuSans:style=常规粗体斜体[root@p0-dabaojian-jcsszy-web33TrueType]#安装工具yuminstall-yfontconfigmkfontscaleapt-get-yinstallfontconfigxfonts-utils会取windows下的字体C:\WINDOWS\FONTS\simsun.ttc(即宋体,字号是10M)出来;重命名为simfang.ttf,将simfang.ttf的字体复制到/usr/share/fonts/chinese/TrueType/下fc-cache-fv刷新字体缓存gan[root@p0-bingo-jcsszy-web34~]#mkdir/usr/share/fonts/chinese/&&cd/usr/share/fonts/chinese/[root@p0-bingo-jcsszy-web34chinese]#wgethttps://mirrors.xxxhealthcare.com/update_files/SCxxxxxx/simfang.ttf保存到:'simfang.ttf'100%[=================================================================================================================================>]10578152--.-K/sin0.1s2021-11-2419:04:31(70.8MB/s)-'simfang.ttf'saved[10578152/10578152][root@p0-bingo-jcssdabaojianzy-web34chinese]#lssimfang.ttfsimsun.ttf[root@p0-bingo-jcsszy-web34中文]#mkfontscale[root@p0-bingo-jcsszy-web34中文]#mkfontdir[root@p0-bingo-jcsszy-web34中文]#fc-cache[root@p0-bingo-jcsszy-web34中文]#fc-list/usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf:DejaVuSans,DejaVuSansCondensed:style=CondensedOblique,Oblique/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf:DejaVuSans,DejaVuSansCondensed:style=CondensedBold,Bold/usr/share/fonts/chinese/simsun.ttf:SimSun,宋体:style=Regular,常规/usr/share/fonts/dejavu/DejaVuSans.ttf:DejaVuSans:style=Book/usr/share/fonts/chinese/simsun.ttf:NSimSun,新宋体:style=Regular,常规/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf:DejaVuSans:style=粗体/usr/share/fonts/dejavu/DejaVuSansCondensed.ttf:DejaVuSans,DejaVuSansCondensed:style=Condensed,Book/usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf:DejaVuSans,DejaVuSansLight:style=ExtraLight/usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf:DejaVuSans,DejaVuSansCondensed:style=CondensedBoldOblique,BoldOblique/usr/share/fonts/dejavu/DejaVuSans-斜体.ttf:DejaVuSans:style=Oblique/usr/share/fonts/chinese/simfang.ttf:FangSong:style=Regular,Normaali/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf:DejaVuSans:style=粗斜体
