平衡点
2008/10/02
_ ~/fonts.conf
日英混ざっている場合の表示で, 日本語と英語で別のフォントが表示されるのか, 高さが揃わず気持ち悪かったので, 力技で強制的に日本語表示, みたいな.
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- disable bitmap --> <match target="font"> <edit mode="assign" name="embeddedbitmap"> <bool>false</bool> </edit> </match> <!-- font declaration --> <!-- serif,normal --> <match target="pattern"> <test name="family" compare="eq"> <string>serif</string> </test> <test name="weight" compare="less_eq"> <const>medium</const> </test> <edit name="family" mode="prepend"> <string>IPAPMincho</string> </edit> </match> <!-- serif,blod --> <match target="pattern"> <test name="family" compare="eq"> <string>serif</string> </test> <test name="weight" compare="more"> <const>medium</const> </test> <edit name="family" mode="prepend"> <string>NfMotoyaCedar</string> </edit> </match> <match target="pattern"> <test name="family"> <string>serif</string> </test> <test name="lang"><string>en</string></test> <edit name="lang" mode="prepend"><string>ja</string></edit> </match> <!-- sans-serif,normal --> <match target="pattern"> <test name="family" compare="eq"> <string>sans-serif</string> </test> <test name="weight" compare="less_eq"> <const>medium</const> </test> <edit name="family" mode="prepend"> <string>IPAPGothic</string> </edit> </match> <!-- sans-serif,bold --> <match target="pattern"> <test name="family" compare="eq"> <string>sans-serif</string> </test> <test name="weight" compare="more"> <const>medium</const> </test> <edit name="family" mode="assign"> <string>NfMotoyaCedar</string> </edit> </match> <match target="pattern"> <test name="family"> <string>sans-serif</string> </test> <test name="lang"><string>en</string></test> <edit name="lang" mode="prepend"><string>ja</string></edit> </match> <!-- monospace --> <match target="pattern"> <test name="family" compare="eq"> <string>monospace</string> </test> <edit name="family" mode="prepend"> <string>September_M_Mono</string> </edit> </match> <!-- monospace using lang=en, ja --> <match target="pattern"> <test name="family"> <string>monospace</string> </test> <test name="lang"><string>en</string></test> <edit name="lang" mode="prepend"><string>ja</string></edit> </match> <match target="pattern"> <test qual="any" name="family"> <string>times</string> </test> <edit name="family" mode="assign"> <string>Nimbus Roman No9 L</string> </edit> </match> </fontconfig>
だからナニって訳でもないですが, とりあえず快適になったので良しとする.