Re: [問題] fontconfig 的設定是否有優先權?

看板FreeBSD作者時間17年前 (2008/04/17 19:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/10 (看更多)
※ 引述《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
文章代碼(AID): #181pKq00 (FreeBSD)
討論串 (同標題文章)
文章代碼(AID): #181pKq00 (FreeBSD)