本文由腾讯云+社区自动同步,原文地址 http://blogtest.stackoverflow.club/install-fonts-in-centos/
最近在用latex写论文,但是发现很多字体自己没有,只能手动安装。
MS下字体的存放路径为C:\Windows\Fonts
我下载字体用的网站
在文件管理器中打开字体文件,可以看到右上方有install
按钮,点击即可安装。
缺点是暂时没有找到删除的方法,也不知道安装到了哪个路径下。
/usr/share/fonts/your_custom_folder_name/
下chmod -R 755 /usr/share/fonts/your_custom_folder_name
yum -y install ttmkfdir
ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir
vim /etc/fonts/fonts.conf
在fonts.conf中添加文件目录
<dir>/usr/share/fonts/your_custom_foldere_name</dir>
fc-cache
fc-list
Reference: