fontconfig での似非 Bold 表示を止める
以前も設定した筈なんだけれど...気がついたら設定ファイルが無くなっていた.firefox で見辛くてしょうがないので再度設定.以前は bold 表示にモトヤシーダを使用していたのだけれど...なんで止めたんだっけな.
とりあえず貼っておく.
- bitmap 表示を off
- 似非 Bold 表示を off
- serif, sans-serif は StarOffice 付属の HG-PMinchoL-Sun, HG-PGothicB-Sun
- IPA明朝/ゴシックの設定が残っているのは御愛嬌(上記フォントが無い環境用).
- Ryumin, GothicBBB も同上
- monospace は VL Gothic
- Helvetica の表示に Arial 使用
の設定. これを ~/.fonts.conf として保存.
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- section:disable bitmap:start --> <match target="font"> <edit mode="assign" name="embeddedbitmap"> <bool>false</bool> </edit> </match> <!-- section:disable bitmap:end --> <!-- section default:serif, sans-serif, monospace:start --> <alias> <family>serif</family> <prefer> <family>HG-PMinchoL-Sun</family> <!-- <family>IPAPMincho</family> --> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>HG-PGothicB-Sun</family> <!-- <family>IPAPGothic</family> --> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>VL Gothic</family> </prefer> </alias> <!-- disable embolden --> <match target="font"> <test name="weight" compare="less_eq"> <const>medium</const> </test> <test target="pattern" name="weight" compare="more"> <const>medium</const> </test> <edit name="embolden" mode="assign"> <bool>false</bool> </edit> <edit name="weight" mode="assign"> <const>bold</const> </edit> </match> <!-- section default:serif, sans-serif, monospace:end --> <!-- section:Ryumin:start --> <match target="pattern"> <test qual="any" name="family"> <string>Ryumin</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>HG-MinchoL-Sun</string> <!-- <string>IPAMincho</string> --> </edit> </match> <!-- section:Ryumin end --> <!-- section:GothicBBB :start --> <match target="pattern"> <test qual="any" name="family"> <string>GothicBBB</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>HG-GothicB-Sun</string> <!-- <string>IPAGothic</string> --> </edit> </match> <!-- section:GothicBBB:end --> <!-- section:Helvetica to Arial:start --> <alias binding="same"> <family>Arial</family> <default><family>Helvetica</family></default> </alias> <alias binding="same"> <family>Helvetica</family> <accept><family>Arial</family></accept> </alias> <!-- section:Helvetica to Arial:end --> </fontconfig>
書いても書いても忘れる鳥頭.この日記だけで fontconfig 関係は 4 エントリもあるのか(笑)