Re: [問題] fontconfig 的設定是否有優先權?
※ 引述《higoodman.bbs@ptt.cc (我是正好人)》之銘言:
> ※ 引述《Edward.bbs@bbs.sayya.org (蒙古大夫 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
討論串 (同標題文章)
完整討論串 (本文為第 5 之 10 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章
125
129