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

<!-- Turn on antialias and hinting with hintmedium -->
<match target="font" >
	<edit mode="assign" name="antialias" >
		<bool>true</bool>
	</edit>
</match>
<match target="font" >
	<edit mode="assign" name="hinting" >
		<bool>true</bool>
	</edit>
</match>
<match target="font" >
	<edit mode="assign" name="hintstyle" >
		<const>hintmedium</const>
	</edit>
</match>

<!-- Control spacing property for Korean -->
<match target="font">
	<test name="lang" compare="contains">
		<string>ko</string>
	</test>
	<test name="spacing" compare="eq">
		<const>dual</const>
	</test>
	<edit name="spacing">
		<const>proportional</const>
	</edit>
	<edit name="globaladvance" binding="strong">
		<bool>false</bool>
	</edit>
</match>
<match target="font">
	<test name="lang" compare="contains">
		<string>ko</string>
	</test>
	<test name="outline" compare="eq">
		<bool>false</bool>
	</test>
	<test name="spacing" compare="eq">
		<const>mono</const>
		<const>charcell</const>
	</test>
	<edit name="spacing">
		<const>proportional</const>
	</edit>
	<edit name="globaladvance" binding="strong">
		<bool>false</bool>
	</edit>
	</match>

<!-- Turn off antialias and autohint for Korean fonts depending on pixelsize -->
<match target="font">
        <test name="lang" compare="contains">
                <string>ko</string>
        </test>
        <test name="pixelsize" compare="more">
		<int>10</int>
	</test>
        <test name="pixelsize" compare="less">
		<int>22</int>
	</test>
        <edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
        <edit name="autohint" mode="assign">
		<bool>false</bool>
	</edit>
        <edit name="hintstyle" mode="assign">
		<const>hintmedium</const>
	</edit>
</match>

<!-- Turn on antialias and hinting with hintmedium for ttf-Unfonts -->
<match target="font">
        <test name="family" compare="contains">
                <string>Un</string>
        </test>
        <edit name="antialias" mode="assign">
		<bool>true</bool>
	</edit>
        <edit name="hinting" mode="assign">
		<bool>true</bool>
	</edit>
	<edit name="hintsytle" mode="assign">
		<const>hintmedium</const>
	</edit>
</match>

<!-- Turn off antialias and autohint for ttf-alee depending on pixelsize -->
<match target="font">
        <test name="family">
                <string>Guseul</string>
        </test>
        <edit name="autohint" mode="assign">
		<bool>true</bool>
	</edit>
</match>
<match target="font">
        <test name="family">
                <string>Guseul</string>
                <string>Guseul Mono</string>
        </test>
	<test name="pixelsize" compare="more">
		<int>11</int>
	</test>
	<test name="pixelsize" compare="less">
		<int>16</int>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
        <edit name="autohint" mode="assign">
		<bool>false</bool>
	</edit>
</match>

</fontconfig>
