45-generic.conf 3.46 KB
Newer Older
1 2 3
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
4 5 6 7 8 9
  <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
    <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
  </its:rules>

  <description>Set substitutions for emoji/math fonts</description>

10 11 12
<!-- Keep in sync with 60-generic.conf -->

<!-- Emoji -->
Behdad Esfahbod's avatar
Behdad Esfahbod committed
13

14
	<!-- System emoji -->
15
	<alias binding="same">
16
		<family>Noto Color Emoji</family> <!-- Google -->
17 18 19
		<default><family>emoji</family></default>
	</alias>
	<alias binding="same">
20
		<family>Apple Color Emoji</family> <!-- Apple -->
21 22 23
		<default><family>emoji</family></default>
	</alias>
	<alias binding="same">
24
		<family>Segoe UI Emoji</family> <!-- Microsoft -->
25 26 27
		<default><family>emoji</family></default>
	</alias>
	<alias binding="same">
28
		<family>Twitter Color Emoji</family> <!-- Twitter -->
29 30 31
		<default><family>emoji</family></default>
	</alias>
	<alias binding="same">
32
		<family>EmojiOne Mozilla</family> <!-- Mozilla -->
33 34
		<default><family>emoji</family></default>
	</alias>
35
	<!-- Third-party emoji -->
36
	<alias binding="same">
37
		<family>Emoji Two</family>
38 39
		<default><family>emoji</family></default>
	</alias>
40
	<alias binding="same">
41
		<family>Emoji One</family>
42 43
		<default><family>emoji</family></default>
	</alias>
Behdad Esfahbod's avatar
Behdad Esfahbod committed
44
	<!-- B&W -->
45 46 47 48 49 50 51 52 53
	<alias binding="same">
		<family>Noto Emoji</family> <!-- Google -->
		<default><family>emoji</family></default>
	</alias>
	<alias binding="same">
		<family>Android Emoji</family> <!-- Google -->
		<default><family>emoji</family></default>
	</alias>

Behdad Esfahbod's avatar
Behdad Esfahbod committed
54 55 56 57 58 59 60 61 62 63
	<!-- Add language for emoji, to match other emoji fonts. -->
	<match>
		<test name="family">
			<string>emoji</string>
		</test>
		<edit name="lang" mode="prepend">
			<string>und-zsye</string>
		</edit>
	</match>

64 65 66 67 68 69 70 71 72 73 74 75 76 77
	<match>
		<test name="lang">
			<string>und-zsye</string>
		</test>
		<test qual="all" name="family" compare="not_eq">
			<string>emoji</string>
		</test>

		<!-- Add generic family. -->
		<edit name="family" mode="append" binding="strong">
			<string>emoji</string>
		</edit>
	</match>

Behdad Esfahbod's avatar
Behdad Esfahbod committed
78

79
<!-- Math -->
Behdad Esfahbod's avatar
Behdad Esfahbod committed
80

81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
	<!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces -->
	<alias binding="same">
		<family>XITS Math</family> <!-- Khaled Hosny -->
		<default><family>math</family></default>
	</alias>
	<alias binding="same">
		<family>STIX Two Math</family> <!-- AMS -->
		<default><family>math</family></default>
	</alias>
	<alias binding="same">
		<family>Cambria Math</family> <!-- Microsoft -->
		<default><family>math</family></default>
	</alias>
	<alias binding="same">
		<family>Latin Modern Math</family> <!-- TeX -->
		<default><family>math</family></default>
	</alias>
	<alias binding="same">
		<family>Minion Math</family> <!-- Adobe -->
		<default><family>math</family></default>
	</alias>
	<alias binding="same">
		<family>Lucida Math</family> <!-- Adobe -->
		<default><family>math</family></default>
	</alias>
	<alias binding="same">
		<family>Asana Math</family>
		<default><family>math</family></default>
	</alias>

Behdad Esfahbod's avatar
Behdad Esfahbod committed
111
	<!-- Add language for math, to match other math fonts. -->
112 113 114 115 116 117 118 119
	<match>
		<test name="family">
			<string>math</string>
		</test>
		<edit name="lang" mode="prepend">
			<string>und-zmth</string>
		</edit>
	</match>
Behdad Esfahbod's avatar
Behdad Esfahbod committed
120

Akira TAGOH's avatar
Akira TAGOH committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134
	<match>
		<test name="lang">
			<string>und-zmth</string>
		</test>
		<test qual="all" name="family" compare="not_eq">
			<string>math</string>
		</test>

		<!-- Add generic family -->
		<edit name="family" mode="append" binding="strong">
			<string>math</string>
		</edit>
	</match>

135

136
</fontconfig>