linux安装字体

来源:互联网 发布:教学实训软件 编辑:程序博客网 时间:2024/05/01 02:31
一、用编辑器打开/etc/fonts/fonts.conf,通常会有如下内容:<dir>/usr/share/fonts</dir><dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/opt/kde3/share/fonts</dir> <dir>/usr/local/share/fonts</dir><dir prefix="xdg">fonts</dir><!-- the following element will be removed in the future --><dir>~/.fonts</dir>把你自己的字体文件放到其中一个目录即可,或者自定义目录,把路径加到fonts.conf也可。
二、刷新字体库
fc-cache -fv
三、查看已安装字体
fc-list :lang=zh
0 0
原创粉丝点击