zoukankan      html  css  js  c++  java
  • Cent os 6.8添加中文字体

    作者:邓聪聪

    Cent os 6.8添加中文字体的相关步骤;

    [root@bogon ]#yum -y install fontconfig #yum安装fontconfig

    [root@bogon ]#cat /usr/share/fonts/
    total 0
    创建目录存放中文字体:
    [root@bogon fonts]# mkdir chinese #创建一个目录
    [root@bogon chinese]# rz
    rz waiting to receive.
    开始 zmodem 传输。 按 Ctrl+C 取消。
    100% 14964 KB 3741 KB/s 00:00:04 0 Errors

    [root@bogon chinese]# ll
    total 14968
    -rw-r--r--. 1 root root 15323200 Jun 11 2009 simsun.ttc

    [root@bogon chinese]# chmod -R 755 /usr/share/fonts/chinese    #赋予文件的执行权限
    [root@bogon chinese]# yum -y install ttmkfdir    #安装ttmkfdir来搜索目录中所有的字体信息,并汇总生成fonts.scale文件
    [root@bogon chinese]# ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir    #执行ttmkfdir命令
    [root@bogon chinese]# vi /etc/fonts/fonts.conf    #修改字体配置文件

    <!-- Font directory list -->

    <dir>/usr/share/fonts</dir>
    <dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts/chinese</dir>
    <dir>~/.fonts</dir>


    [root@bogon chinese]# fc-cache    #刷新内存中的字体缓存
    [root@bogon chinese]# fc-list    #再次查看就有中文字体了

    编译显示中文信息;

    yum groupinstall chinese-support yum安装中文语言包

    locale

    vi /etc/sysconfig/i18n
    LANG="zh_CN.UTF-8"
    SYSFONT="latarcyrheb-sun16"

    source /etc/sysconfig/i18n
    locale

  • 相关阅读:
    Maven的声明周期(Lifecycle )和命令(Phase)
    Java并发之线程异常捕获
    Java并发之需要了解但不能太依赖的东东
    ejs使用
    node.js BootStrap安装
    div+css关于overflow 动态滚动效果
    myBatis 参数配置
    jQuery Ajax请求提交 后台getParameter接收不到数据
    mysql+mybatis 插入可递增字段库表操作
    CSS浮动讲解好文章推荐
  • 原文地址:https://www.cnblogs.com/dengcongcong/p/7655113.html
Copyright © 2011-2022 走看看