FreeBSD下字体安装步骤详解,之前使用的默认字体不是太喜欢。 因为大型的字体显得参差不齐,这时有一款自己喜欢的字体最好不过了。
所以需要我们手工加入字体时,FreeBSD下字体安装步骤详解,可采用如下两种方式:
方法一、
添加Times Roman,Helvetica,Palatino等Type1字体,URW字体集合 (x11-fonts/urwfonts) 就包括了高质量的 标准 type1 字体。
因此安装URW即可:
1.1安装URW
# cd /usr/ports/x11-fonts/urwfonts
# make install clean
1.2 配置URW
需要在 X 服务器的配置文件 (/etc/X11/xorg.conf) 中增加下面的配置:
FontPath "/usr/local/lib/X11/fonts/URW/"
也可采用命令方式在当前会话中执行,以下内容需要在X桌面的Terminal执行才可以。
% xset fp+ /usr/local/lib/X11/fonts/URW
% xset fp rehash
2、安装微软雅黑、宋体等等中文字体即 TrueType® 字体
Xorg 已经内建了对 TrueType® 字体的支持
2.1 配置文件
将下面这行添加到 /etc/X11/xorg.conf 文件的 "Module" 部分Load "freetype"
2.2为 TrueType® 字体创建一个目录
比如, /usr/local/lib/X11/fonts/TrueType, 然后把所有的 TrueType® 字体复制到这个目录。记住您不能直接从 Macintosh® 计算机中提取TrueType® 字体; 能被 X11 使用的必须是UNIX®/MS-DOS®/Windows® 格式的。
2.3 用 ttmkfdir 来创建 fonts.dir 文件, 以便让X字体引擎知道您已经安装了这些新文件。
2.3.1 ttmkfdir 需要安装,直接用pkg_add -r ttmkfdir就能装上。
2.3.2
# cd /usr/local/lib/X11/fonts/TrueType
# ttmkfdir -o fonts.dir
3.4 把 TrueType® 字体目录添加到字体路径中
需要在 X 服务器的配置文件 (/etc/X11/xorg.conf) 中增加下面的配置:FontPath "/usr/local/lib/X11/fonts/TrueType"
如果要立即启用请输入:
% xset fp+ /usr/local/lib/X11/fonts/TrueType
% xset fp rehash
以上的命令操作,需要在X桌面的Terminal中执行才可以。
现在 Netscape®,Gimp,StarOffice™ 和其他所有的 X 应用程序 应该可以认出安装的TrueType® 字体。一些很小的字体,但如果是在 Web 页面上高分辨率显示的文本。
FreeBSD下字体安装步骤详解,安装文泉驿中文字体:
# whereis wqy
wqy: /usr/ports/x11-fonts/wqy
# cd /usr/ports/x11-fonts/wqy
# make install clean
整个过程需要时间在15分钟左右。iplaypy.com
让X系统启动时载入字体,编辑/etc/X11/xorg.conf 在Section "Files"里面加一行,FontPath "/usr/local/lib/X11/fonts/wqy"像下面这样
Section "Files"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
FontPath "/usr/local/lib/X11/fonts/wqy"
EndSection
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
更新日志
- 伊能静.1989-悲伤的茱丽叶【飞鹰唱片】【WAV+CUE】
- 黑神话二郎神脸模再次COS自己:霸气侧漏 颜值超高!
- 《黑神话》萍萍演员再晒COS:国庆皮肤限时返场!
- 《暗黑4》资料片IGN 8分:新增内容令人相当满意!
- 《一人一首成名曲·怀旧篇 3CD》[WAV+CUE][1.5GB]
- 《张信哲 粤语精选集 从开始到现在 2CD》[WAV+CUE][780MB]
- 《中国歌典 1950-1999年代经典歌曲 10CD》[FLAC/分轨][3.5GB]
- 群星.2024-流水迢迢影视原声带【诗和远方】【FLAC分轨】
- 蓝心湄.1999-心湄看新湄【SONY】【WAV+CUE】
- FINE乐团.2022-宇宙神经【FLAC分轨】
- 万代南梦宫逼迫中国选手弃权《铁拳》比赛 国籍不符合资格
- 《黑神话》官方手办引热议:真的很好看真的买不起
- 《黑神话:悟空》取景地灵岩寺现巨型悟空!挥舞大棒超帅气
- 秦咏.1997-歌咏诗情·历年名曲典故【音乐谷】【WAV+CUE】
- 群星.1997-纯电影·电影歌曲剧照纪念篇【新艺宝】【WAV+CUE】