文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > Install and configure Unicode TrueType fonts in Linux
侵权投诉

Install and configure Unicode TrueType fonts in Linux

linux默认字体美观程度欠佳,文档总结了为linux系统添加truetype字体的方法,ps:windows字体通常为truetype,故可以使用文中的方法将windows中的字体添加到linux中去。

Install and configure Unicode TrueType fonts in Linux

Uncompress the downloaded font archive to a directory and add it to the font path, a list of directories containing fonts:

1. Uncompress the archive

# tar xvzf

or

# tar xvjf

2. Create a directory for new fonts

# mkdir /usr/share/fonts/truetype

3. Move the uncompressed font files to the new font directory

# mv *.ttf /usr/share/fonts/truetype

4. Navigate to the font directory

# cd /usr/share/fonts/truetype

5. Create fonts.scale and fonts.dir

# mkfontscale && mkfontdir

# fc-cache

6. Add the new font directory to the X11 font path

# chkfontpath --add /usr/share/fonts/truetype

7. Restart X font server

# /etc/rc.d/init.d/xfs restart

You can verify the successful addition of the new path by running chkfontpath command or by listing X font server's /etc/X11/XF86Config file.

If you do not have root access, copy the *.ttf to ~/.fonts directory instead.

Make X11 fonts available to Java

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email