---
title: "在CentOS中安装中文字体"
author: "cjx186"
date: "2012-06-22T20:25:05Z"
tags: []
categories: ["非技术"]
slug: "centos"
draft: false
lastmod: "2012-06-22T20:25:05Z"
id: 1566110
url: "https://xml.iteye.com/blog/1566110"
---

字体： 大 小 Posted by 唧唧 | tags: CentOS  字体 
 1、先从你本机 C:\Windows\Fonts 拷贝或者网络上下载你想要安装的字体文件（*.ttf文件）到 /usr/share/fonts/chinese/TrueType 目录下（如果系统中没有此目录，则自行mkdir创建，亦可重命名为自己喜欢的文件夹名） 
2、修改字体文件的权限，使root用户以外的用户也可以使用
# cd /usr/share/fonts/chinese/TrueType
# chmod 755 *.ttf
3、建立字体缓存
# mkfontscale （如果提示 mkfontscale: command not found，需自行安装 # yum install mkfontscale ）
# mkfontdir
# fc-cache -fv
4、重启计算机
# reboot