Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
- <fontconfig>
- <dir>~/.fonts</dir>
- <cachedir>~/.fontconfig</cachedir>
- <!-- Hinting Settings -->
- <match target="font">
- <edit mode="assign" name="hinting">
- <bool>true</bool>
- </edit>
- </match>
- <match target="font">
- <edit name="autohint" mode="assign">
- <bool>false</bool>
- </edit>
- </match>
- <match target="font" >
- <edit mode="assign" name="hintstyle">
- <const>hintfull</const>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="antialias">
- <bool>true</bool>
- </edit>
- </match>
- <!-- Enable subpixel rendering -->
- <match target="font">
- <edit name="rgba" mode="assign">
- <const>rgb</const>
- </edit>
- </match>
- <!-- When using subpixel rendering, lcd filter should be enabled -->
- <!-- lcddefault/lcdlight/lcdlegacy/lcdnone -->
- <match target="font">
- <edit mode="assign" name="lcdfilter">
- <const>lcddefault</const>
- </edit>
- </match>
- <!-- Don't use the autohinter with subpixel rendering -->
- <!-- If autohinter was used, set it to false for bold fonts -->
- <!--
- <match target="font">
- <test name="weight" compare="more">
- <const>medium</const>
- </test>
- <edit name="autohint" mode="assign">
- <bool>false</bool>
- </edit>
- </match>
- -->
- <!-- Exclude a range of fonts for Anti Aliasing -->
- <!--
- <match target="font">
- <test qual="any" name="size" compare="more">
- <double>9</double>
- </test>
- <test qual="any" name="size" compare="less">
- <double>12</double>
- </test>
- <edit name="antialias" mode="assign">
- <bool>false</bool>
- </edit>
- </match>
- -->
- <!-- Replacing Fonts -->
- <match target="pattern" name="family" >
- <test name="family">
- <string>SimSun</string>
- <string>NSimSun</string>
- <string>宋体</string>
- <string>新宋体</string>
- </test>
- <edit name="family" binding="strong" mode="prepend">
- <string>DejaVu Sans</string>
- </edit>
- </match>
- <!-- CJK Settings -->
- <match target="font">
- <test name="lang" compare="contains">
- <string>zh</string>
- <string>ja</string>
- <string>ko</string>
- </test>
- <test name="spacing" compare="eq">
- <const>dual</const>
- </test>
- <edit name="globaladvance" mode="assign">
- <bool>false</bool>
- </edit>
- <edit name="spacing" mode="assign">
- <const>proportional</const>
- </edit>
- </match>
- </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement