<?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>

  <alias>
    <family>monospace</family>
    <prefer><family>DejaVu Sans Mono</family></prefer>
  </alias>

  <dir prefix="relative">.</dir>

</fontconfig>
