看板FreeBSD
标 题Re: [问题] fontconfig 的设定是否有优先权?
发信站SayYA 资讯站 (Thu Apr 17 19:04:25 2008)
转信站ptt!ctu-reader!ctu-peer!news.nctu!News.Math.NCTU!SayYa
※ 引述《[email protected] (我是正好人)》之铭言:
> ※ 引述《[email protected] (蒙古大夫 2.0)》之铭言:
> : 如果你要的是选英字型,附带某特定选用的中文字型也要有同样效果,那麽你
> : 需要用 strong binding,并且两个字型也要设在上面的设定里头。所以请精确
> : 一点说明你的需求。
> 我的需求是,系统预设的 mono 会抓到 Andale Mono 这字型,在 gnome-terminal 中
> 不要有 antialias,若在 terminal 中遇到中文的话由 AR PL New Sung Mono 来显示
> $ fc-match mono
> AndaleMo.ttf: "Andale Mono" "Normal"
> 看起来是有选到,但是 gnome-terminal 的字就还是 AA 过的
> 而在 gedit 下则是如我所愿出现没有 AA 的字...
<fontconfig>
<match target="pattern" >
<test compare="eq" name="family" >
<string>monospace</string>
</test>
<edit mode="assign" binding="strong" name="family" >
<string>Andale Mono</string>
<string>AR PL New Sung Mono</string>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
把这段写入 ~/.fonts.conf,再来测试看看。
--
一个神圣的目标是很危险的。当一个目标变得神圣时,
要达到这个目标的手段往往会变得很卑下。(林语堂.快乐的天才)
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: edt1023.sayya.org