<fontconfig>
	<include ignore_missing="yes">CJK_aliases</include>

	<match target="font">
		<edit name="embeddedbitmap" mode="assign">
			<bool>false</bool>
		</edit>
		<edit name="autohint" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="antialias" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="hintstyle" mode="assign">
			<const>hintfull</const>
		</edit>
	</match>

	<match target="font">
		<test name="lang" compare="contains">
			<string>ja</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>ja</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>

	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>IPAMonaPGothic</string>
			<string>IPAPGothic</string>
			<string>Sazanami Gothic</string>
			<string>Kochi Gothic</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>IPAMonaPMincho</string>
			<string>IPAPMincho</string>
			<string>Sazanami Mincho</string>
			<string>Kochi Mincho</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>IPAMonaGothic</string>
			<string>IPAGothic</string>
			<string>Sazanami Gothic</string>
			<string>Kochi Gothic</string>
		</edit>
	</match> 
</fontconfig>
