现在的位置: 首页 > 综合 > 正文

为Linux安装自定义字体

2012年06月03日 ⁄ 综合 ⁄ 共 275字 ⁄ 字号 评论关闭
  1. 修改字体配置文件(需要Root权限),将需要添加的字体添加入列表
    sodu 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>~/seeting/fonts</dir>

  2. 执行以下命令
    sudo mkfontscale
    sudo mkfontdir
    sudo fc-cache -fv

抱歉!评论已关闭.