diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-08-02 15:41:26 +0100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-08-02 15:41:26 +0100 |
commit | 7ef17238361a7e49588924ce7aeb7ad9c3748bd5 (patch) | |
tree | f58add81b8eb6538992e965bfce2f86857d1adb5 | |
parent | 9978203bf16a0dfc1aa1c599989945d561628790 (diff) |
Minor
-rw-r--r-- | conf.d/45-generic.conf | 63 | ||||
-rw-r--r-- | conf.d/60-generic.conf | 1 |
2 files changed, 38 insertions, 26 deletions
diff --git a/conf.d/45-generic.conf b/conf.d/45-generic.conf index f7497b96..cc3eb58a 100644 --- a/conf.d/45-generic.conf +++ b/conf.d/45-generic.conf @@ -4,6 +4,28 @@ <!-- Keep in sync with 60-generic.conf --> <!-- Emoji --> + + <!-- Prefer to match color emoji font. --> + <match> + <test name="lang"> + <string>und-zsye</string> + </test> + <test qual="all" name="color" compare="not_eq"> + <bool>true</bool> + </test> + <test qual="all" name="color" compare="not_eq"> + <bool>false</bool> + </test> + <edit name="color" mode="append"> + <bool>true</bool> + </edit> + </match> + + <!-- TODO + ! Match on "color" and alias B&W ones first if no color is requested. + ! That's "hard" because <alias> doesn't work in match and needs to be + ! expanded to its non-sugar form. + !--> <alias binding="same"> <family>Emoji Two</family> <default><family>emoji</family></default> @@ -32,6 +54,7 @@ <family>EmojiOne Mozilla</family> <!-- Mozilla --> <default><family>emoji</family></default> </alias> + <!-- B&W --> <alias binding="same"> <family>Noto Emoji</family> <!-- Google --> <default><family>emoji</family></default> @@ -41,7 +64,19 @@ <default><family>emoji</family></default> </alias> + <!-- 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> + + <!-- Math --> + <!-- https://en.wikipedia.org/wiki/Category:Mathematical_OpenType_typefaces --> <alias binding="same"> <family>XITS Math</family> <!-- Khaled Hosny --> @@ -72,17 +107,7 @@ <default><family>math</family></default> </alias> - - <!-- add a lang for emoji if requesting emoji family --> - <match> - <test name="family"> - <string>emoji</string> - </test> - <edit name="lang" mode="prepend"> - <string>und-zsye</string> - </edit> - </match> - <!-- add a lang for math if requesting math family --> + <!-- Add language for math, to match other math fonts. --> <match> <test name="family"> <string>math</string> @@ -91,20 +116,6 @@ <string>und-zmth</string> </edit> </match> - <!-- prefer to use the color emoji font if none is specified --> - <match> - <test name="lang"> - <string>und-zsye</string> - </test> - <test qual="all" name="color" compare="not_eq"> - <bool>true</bool> - </test> - <test qual="all" name="color" compare="not_eq"> - <bool>false</bool> - </test> - <edit name="color" mode="append"> - <bool>true</bool> - </edit> - </match> + </fontconfig> diff --git a/conf.d/60-generic.conf b/conf.d/60-generic.conf index c70dd891..00246fa8 100644 --- a/conf.d/60-generic.conf +++ b/conf.d/60-generic.conf @@ -4,6 +4,7 @@ <!-- Keep in sync with 45-generic.conf --> <!-- Emoji --> + <alias binding="same"> <family>emoji</family> <prefer> |