summaryrefslogtreecommitdiff
path: root/tests/fonts
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-26 23:03:16 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-26 23:27:46 -0500
commit99d6b3fc3c5eb96b836a5ce934e6628c4217d623 (patch)
tree923533e9893e1de4c5d728bb58c4227a6bc159a6 /tests/fonts
parent2d02c2dd130c809bcc754aa9048f643ea0f80470 (diff)
downloadpango-99d6b3fc3c5eb96b836a5ce934e6628c4217d623.tar.gz
tests: Fix font setup for Emoji
We need to copy the scale hack for bitmaps.
Diffstat (limited to 'tests/fonts')
-rw-r--r--tests/fonts/fonts.conf65
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/fonts/fonts.conf b/tests/fonts/fonts.conf
new file mode 100644
index 00000000..5ff7022b
--- /dev/null
+++ b/tests/fonts/fonts.conf
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
+<fontconfig>
+ <cachedir>/tmp/cache</cachedir>
+
+ <match target="font">
+ <test name="outline" compare="eq">
+ <bool>false</bool>
+ </test>
+ <edit name="pixelsizefixupfactor" mode="assign">
+ <divide>
+ <name target="pattern">pixelsize</name>
+ <name target="font">pixelsize</name>
+ </divide>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="outline" compare="eq">
+ <bool>false</bool>
+ </test>
+ <test name="pixelsizefixupfactor" compare="not_eq">
+ <double>1.0</double>
+ </test>
+ <edit name="matrix" mode="assign">
+ <times>
+ <name>matrix</name>
+ <matrix>
+ <name>pixelsizefixupfactor</name> <double>0</double>
+ <double>0</double> <name>pixelsizefixupfactor</name>
+ </matrix>
+ </times>
+ </edit>
+ <edit name="size" mode="assign">
+ <divide>
+ <name>size</name>
+ <name>pixelsizefixupfactor</name>
+ </divide>
+ </edit>
+ </match>
+
+ <alias binding="same">
+ <family>Noto Color Emoji</family>
+ <default><family>emoji</family></default>
+ </alias>
+
+ <match>
+ <test name="lang">
+ <string>und-zsye</string>
+ </test>
+ <test qual="all" name="family" compare="not_eq">
+ <string>emoji</string>
+ </test>
+ <edit name="family" mode="append" binding="strong">
+ <string>emoji</string>
+ </edit>
+ </match>
+
+ <alias binding="same">
+ <family>emoji</family>
+ <prefer>
+ <family>Noto Color Emoji</family>
+ </prefer>
+ </alias>
+</fontconfig>