Add smack rules for default font config pathes.
[platform/upstream/fontconfig.git] / conf.d / 60-generic.conf
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4   <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5     <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
6   </its:rules>
7
8   <description>Set preferable fonts for emoji/math fonts</description>
9 <!-- Keep in sync with 45-generic.conf -->
10
11 <!-- Emoji -->
12
13         <!-- Prefer to match color emoji font. -->
14         <match>
15                 <test name="lang">
16                         <string>und-zsye</string>
17                 </test>
18                 <test qual="all" name="color" compare="not_eq">
19                         <bool>true</bool>
20                 </test>
21                 <test qual="all" name="color" compare="not_eq">
22                         <bool>false</bool>
23                 </test>
24                 <edit name="color" mode="append">
25                         <bool>true</bool>
26                 </edit>
27         </match>
28
29         <!-- TODO
30          ! Match on "color" and alias B&W ones first if no color is requested.
31          ! That's "hard" because <alias> doesn't work in match and needs to be
32          ! expanded to its non-sugar form.
33          !-->
34         <alias binding="same">
35                 <family>emoji</family>
36                 <prefer>
37                         <!-- System fonts -->
38                         <family>Noto Color Emoji</family> <!-- Google -->
39                         <family>Apple Color Emoji</family> <!-- Apple -->
40                         <family>Segoe UI Emoji</family> <!-- Microsoft -->
41                         <family>Twitter Color Emoji</family> <!-- Twitter -->
42                         <family>EmojiOne Mozilla</family> <!-- Mozilla -->
43                         <!-- Third-Party fonts -->
44                         <family>Emoji Two</family>
45                         <family>Emoji One</family>
46                         <!-- Non-color -->
47                         <family>Noto Emoji</family> <!-- Google -->
48                         <family>Android Emoji</family> <!-- Google -->
49                 </prefer>
50         </alias>
51
52 <!-- Math -->
53         <alias binding="same">
54                 <!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces -->
55                 <family>math</family>
56                 <prefer>
57                         <family>XITS Math</family> <!-- Khaled Hosny -->
58                         <family>STIX Two Math</family> <!-- AMS -->
59                         <family>Cambria Math</family> <!-- Microsoft -->
60                         <family>Latin Modern Math</family> <!-- TeX -->
61                         <family>Minion Math</family> <!-- Adobe -->
62                         <family>Lucida Math</family> <!-- Adobe -->
63                         <family>Asana Math</family>
64                 </prefer>
65         </alias>
66
67 </fontconfig>