summaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-08-03 10:36:01 +0100
committerBehdad Esfahbod <behdad@behdad.org>2017-08-03 10:36:01 +0100
commitcc8442dec85e9d416436d19eeae1783f2d3008f0 (patch)
tree12bc1085ed52cd017129311f53eba9a79826e0ec /conf.d
parent26fdd3e4c6428ef91f9afb40ea14a5e7fd6028e5 (diff)
downloadfontconfig-cc8442dec85e9d416436d19eeae1783f2d3008f0.tar.gz
Adjust color emoji config some more
Seems to work now. Either asking for family emoji, or :lang=und-zsye returns the preferred color emoji font available, or just any color emoji font if none of the preferred ones was found.
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/45-generic.conf35
-rw-r--r--conf.d/60-generic.conf21
2 files changed, 35 insertions, 21 deletions
diff --git a/conf.d/45-generic.conf b/conf.d/45-generic.conf
index cc3eb58..f41ff84 100644
--- a/conf.d/45-generic.conf
+++ b/conf.d/45-generic.conf
@@ -5,27 +5,6 @@
<!-- 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>
@@ -74,6 +53,20 @@
</edit>
</match>
+ <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>
+
<!-- Math -->
diff --git a/conf.d/60-generic.conf b/conf.d/60-generic.conf
index 00246fa..2a2b809 100644
--- a/conf.d/60-generic.conf
+++ b/conf.d/60-generic.conf
@@ -5,6 +5,27 @@
<!-- 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</family>
<prefer>