WebClerk

每个人其实都行走在蓝天之下,如果你没有感觉到,那是因为你没有抬头向上看,而不是它不存在。

导航

为Linux安装自定义字体

Posted on 2013-05-13 21:06  WebClerk  阅读(505)  评论(0编辑  收藏  举报
  1. 修改字体配置文件(需要Root权限),将需要添加的字体添加入列表
    sudo gedit /etc/fonts/fonts.conf
    <!-- Font directory list -->
            <dir>/usr/share/fonts</dir>
            <dir>/usr/X11R6/lib/X11/fonts</dir> 
            <dir>/usr/local/share/fonts</dir>
            <dir>~/.fonts</dir>
            <dir>~/setting/fonts</dir>
  2. 执行以下命令
    sudo mkfontscale
    sudo mkfontdir
    sudo fc-cache -fv