CODE: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/fonts.conf file to configure system font access --> <fontconfig> <match target="pattern"> <edit name="dpi" mode="assign" > <double>96</double> </edit> </match> <!-- 配置字體目錄 --> <dir>/usr/share/fonts/zh_CN/vista</dir> <!-- 配置雅黑字體 <match target="font"> <test name="family" qual="any" compare="eq"> <string>微軟雅黑</string> <string>Microsoft YaHei</string> </test> <test compare="more_eq" name="pixelsize"> <double>12</double> </test> <test compare="less_eq" name="pixelsize"> <double>18</double> </test> <edit name="rgba" mode="assign"> <const>vrgb</const> </edit> <edit name="antialias" mode="assign" > <bool>true</bool> </edit> <edit name="autohint" mode="assign" > <bool>false</bool> </edit> <edit name="hinting" mode="assign" > <bool>true</bool> </edit> <edit name="hintstyle" mode="assign" > <const>hintfull</const> </edit> </match> --> <match target="font" > <test qual="any" name="family" compare="eq" > <string>none</string> </test> <edit name="rgba" mode="assign"> <const>vrgb</const> </edit> <edit name="antialias" mode="assign" > <bool>true</bool> </edit> <edit name="autohint" mode="assign" > <bool>false</bool> </edit> <edit name="hinting" mode="assign" > <bool>true</bool> </edit> <edit name="hintstyle" mode="assign" > <const>hintfull</const> </edit> </match> <!-- 配置 --> <match target="font" > <test qual="any" name="family" compare="eq" > <string>Segoe UI</string> </test> <edit name="rgba" mode="assign"> <const>none</const> </edit> <edit name="antialias" mode="assign" > <bool>true</bool> </edit> <edit name="autohint" mode="assign" > <bool>false</bool> </edit> <edit name="hinting" mode="assign" > <bool>true</bool> </edit> <edit name="hintstyle" mode="assign" > <const>hintfull</const> </edit> </match> <!-- 已註釋,不會被讀取 English portion substitution 將指定字體中的英文字體替換成Segoe UI字體 <match target="pattern" > <test name="family" > <string>微軟雅黑</string> <string>Microsoft YaHei</string> </test> <edit name="family" mode="prepend" binding="strong" > <string>Segoe UI</string> </edit> </match> <match target="pattern" > <test name="family" > <string>微軟雅黑</string> <string>Microsoft YaHei</string> </test> <edit name="family" mode="prepend" binding="strong" > <string>Segoe UI</string> </edit> </match> --> </fontconfig> |
[火星人 ] Fedora 8 中字體設置的學習已經有500次圍觀