diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-04-24 19:11:41 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-06-22 14:30:56 +0900 |
commit | 769306665c37175d1e0e1167895eace0a8bc4bc3 (patch) | |
tree | a748c38bed8b7e3f6cf6523ceb95c30ff20b1782 /doc | |
parent | e5a59eac905f1ff6ebe6005c257ce3f9f3c4cc6b (diff) |
Bug 18726 - RFE: help write locale-specific tests
Add an example matching rule for the language specific
Diffstat (limited to 'doc')
-rw-r--r-- | doc/fontconfig-user.sgml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml index 92d0db8b..f7632ea6 100644 --- a/doc/fontconfig-user.sgml +++ b/doc/fontconfig-user.sgml @@ -677,6 +677,41 @@ $XDG_CONFIG_HOME/fontconfig/fonts.conf <match target="font"> <edit name="rgba" mode="assign"><const>rgb</const></edit> </match> +<!-- + use WenQuanYi Zen Hei font when serif is requested for Chinese +--> +<match> + <!-- + If you don't want to use WenQuanYi Zen Hei font for zh-tw etc, + you can use zh-cn instead of zh. + Please note, even if you set zh-cn, it still matches zh. + if you don't like it, you can use compare="eq" + instead of compare="contains". + --> + <test name="lang" compare="contains"> + <string>zh</string> + </test> + <test name="family"> + <string>serif</string> + </test> + <edit name="family" mode="prepend"> + <string>WenQuanYi Zen Hei</string> + </edit> +</match> +<!-- + use VL Gothic font when sans-serif is requested for Japanese +--> +<match> + <test name="lang" compare="contains"> + <string>ja</string> + </test> + <test name="family"> + <string>sans-serif</string> + </test> + <edit name="family" mode="prepend"> + <string>VL Gothic</string> + </edit> +</match> </fontconfig> </programlisting> </refsect2> |