<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

    <!-- IPA PMincho -->
    <match target="font">
        <test name="family">
            <string>IPAPMincho</string>
        </test>
	<test name="pixelsize" compare="less">
	    <double>9</double>
	</test>
        <edit name="hinting" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

    <match target="font">
        <test name="family">
            <string>IPAPMincho</string>
        </test>
	<test name="pixelsize" compare="more_eq">
	    <double>9</double>
	</test>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintslight</const>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

    <!-- IPA Mincho -->
    <match target="font">
        <test name="family">
            <string>IPAMincho</string>
        </test>
	<test name="pixelsize" compare="less">
	    <double>9</double>
	</test>
        <edit name="hinting" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

    <match target="font">
        <test name="family">
            <string>IPAMincho</string>
        </test>
	<test name="pixelsize" compare="more_eq">
	    <double>9</double>
	</test>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintslight</const>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

    <alias>
        <family>serif</family>
        <prefer>
            <family>IPAPMincho</family>
        </prefer>
    </alias>

</fontconfig>
