<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
	<!-- Generic names -->
	<alias>
		<family>IPAGothic</family>
		<default>
			<family>monospace</family>
		</default>
	</alias>
	<!-- NOTE: just for fallback - ideally better installing ipa-pgothic-fonts -->
	<alias>
		<family>IPAGothic</family>
		<default>
			<family>sans-serif</family>
		</default>
	</alias>

	<!-- Locale-specific overrides -->
	<match>
		<test name="lang">
			<string>ja-jp</string>
			<string>ja</string>
		</test>
		<test name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend">
			<string>IPAGothic</string>
		</edit>
	</match>
	<!-- NOTE: just for fallback - ideally better installing ipa-pgothic-fonts -->
	<match>
		<test name="lang">
			<string>ja-jp</string>
			<string>ja</string>
		</test>
		<test name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend">
			<string>IPAGothic</string>
		</edit>
	</match>
	<!-- disable hinting -->
<!--
	<match target="font">
		<test name="family">
			<string>IPAGothic</string>
		</test>
		<edit name="hinting" mode="assign">
			<bool>false</bool>
		</edit>
	</match>
-->
</fontconfig>

