<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <match>
    <test name="lang" compare="contains">
      <string>si</string>
    </test>
    <test name="family">
      <string>sans-serif</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Sans Sinhala</string>
    </edit>
  </match>
  <alias>
    <family>Noto Sans Sinhala</family>
    <default>
      <family>sans-serif</family>
    </default>
  </alias>
  <match>
    <test name="lang" compare="contains">
      <string>si</string>
    </test>
    <test name="family">
      <string>monospace</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Sans Sinhala</string>
    </edit>
  </match>

  <match>
    <test name="family">
      <string>monospace</string>
    </test>
    <test name="lang">
      <string>si</string>
    </test>
    <!-- Add Noto Sans Sinhala for monospace for workaround -->
    <edit name="family" mode="append">
      <string>Noto Sans Sinhala</string>
    </edit>
  </match>
</fontconfig>
