Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
- <!--
- .fonts.conf used by WU Jun <#{['.net', 'lihdd', '@', 'quark'].reverse.join}>
- 2010-2012 Some rights reserved.
- -->
- <fontconfig>
- <rejectfont>
- <!-- Reject ugly XServer fonts -->
- <pattern>
- <patelt name="family">
- <string>Fixed</string>
- </patelt>
- </pattern>
- <!-- Reject SimSun -->
- <pattern>
- <patelt name="family">
- <!-- "NSimSun" or "新宋体" can still be used -->
- <string>SimSun</string>
- </patelt>
- </pattern>
- <!-- "Arial Unicode MS" will take 1st place of fc-match, disable it -->
- <pattern>
- <patelt name="family">
- <string>Arial Unicode MS</string>
- </patelt>
- </pattern>
- </rejectfont>
- <!-- Hinting, Subpixel rendering, LCD filter, dpi -->
- <match target="font">
- <edit mode="assign" name="antialias" >
- <bool>true</bool>
- </edit>
- <edit mode="assign" name="hinting" >
- <bool>true</bool>
- </edit>
- <edit mode="assign" name="hintstyle" >
- <const>hintslight</const>
- </edit>
- <edit name="rgba" mode="assign"><const>rgb</const></edit>
- <!-- seems only cario-lcd, *-lcd use this setting -->
- <edit mode="assign" name="lcdfilter">
- <const>lcddefault</const>
- </edit>
- <edit mode="assign" name="dpi">
- <double>96</double>
- </edit>
- </match>
- <!-- Set sans-serif as fallback family -->
- <match target="pattern">
- <test qual="all" name="family" compare="not_eq">
- <string>sans-serif</string>
- </test>
- <test qual="all" name="family" compare="not_eq">
- <string>serif</string>
- </test>
- <test qual="all" name="family" compare="not_eq">
- <string>monospace</string>
- </test>
- <edit name="family" mode="append_last">
- <string>sans-serif</string>
- </edit>
- </match>
- <!-- Force all Chinese, Japanese, Thai to use Droid Sans -->
- <!--
- <match target="pattern">
- <test qual="any" compare="eq" name="lang" target="font">
- <string>zh-cn</string>
- <string>zh-tw</string>
- <string>zh-hk</string>
- <string>zh-sg</string>
- <string>zh</string>
- </test>
- <edit name="family" mode="append" target="font" binding="strong">
- <string>Droid Sans Fallback</string>
- </edit>
- </match>
- <match target="pattern">
- <test qual="any" compare="eq" name="lang" target="font">
- <string>ja</string>
- </test>
- <edit name="family" mode="append" target="font" binding="strong">
- <string>Droid Sans Japanese</string>
- </edit>
- </match>
- <match target="pattern">
- <test qual="any" compare="eq" name="lang" target="font">
- <string>th</string>
- </test>
- <edit name="family" mode="append" target="font" binding="strong">
- <string>Droid Sans Thai</string>
- </edit>
- </match>
- -->
- <!-- Fallback to use Droid Sans, globally -->
- <match target="pattern">
- <edit name="family" mode="append" target="font" binding="weak">
- <string>Droid Sans Fallback</string>
- <string>Droid Sans Japanese</string>
- <string>Droid Sans Thai</string>
- </edit>
- </match>
- <!-- Terminus 9 Bold fix -->
- <match target="font">
- <test name="family" compare="eq" qual="any">
- <string>Terminus</string>
- </test>
- <edit mode="assign" name="weight" >
- <const>thin</const>
- </edit>
- </match>
- <!-- Set NSimSun as Terminus fallback -->
- <match target="pattern">
- <test name="family" compare="eq" qual="any">
- <string>Terminus</string>
- </test>
- <edit name="family" mode="append">
- <string>NSimSun</string>
- </edit>
- </match>
- </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement