Press "Enter" to skip to content

linux下安装中文字体

装了redhat 5后发现,安装系统时没安装中文字体,没办法显示中文网页,都是乱码。
上网找到了安装的方法,步骤如下:
1.windows的字体一般存放在c:\windows\fonts目录下,copy你要的字体到linux下,文件是

ttf格式
2.把字体copy到/usr/share/fonts 目录下,然后执行以下命令
mkfontscale
mkfontdir//这两条命令是生成字体的索引信息
fc-cache //更新字体缓存
3.安装好了,可以查看中文网页了

via

Leave a Reply

Your email address will not be published. Required fields are marked *