File 59-family-prefer-lang-specific.conf of Package fonts-config.9323

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

<!--
   Set language-specific fonts to be preferred when the standard aliases
   "serif", "sans-serif" and "monospace" are used.
-->

	<!-- Simplified Chinese -->
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test qual="any" name="lang" compare="eq">
			<string>zh-cn</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans CJK SC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>serif</string>
		</test>
		<test name="lang" compare="eq">
		  <string>zh-cn</string>
		</test>
		<edit name="family" mode="prepend">
			<string>AR PL UMing CN</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
		  <string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-cn</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans Mono CJK SC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-sg</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans CJK SC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>serif</string>
		</test>
		<test name="lang" compare="eq">
		<string>zh-sg</string>
		</test>
		<edit name="family" mode="prepend">
			<string>AR PL UMing CN</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-sg</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans Mono CJK SC</string>
		</edit>
	</match>

	<!-- Traditional Chinese -->
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-tw</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans CJK TC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-tw</string>
		</test>
		<edit name="family" mode="prepend">
			<string>AR PL UMing TW</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-tw</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans Mono CJK TC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-hk</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans CJK TC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-hk</string>
		</test>
		<edit name="family" mode="prepend">
			<string>AR PL UMing HK</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-hk</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans Mono CJK TC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-mo</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans CJK TC</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-mo</string>
		</test>
		<edit name="family" mode="prepend">
			<string>CMEXSong</string>
			<string>AR PL UMing HK</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>zh-mo</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans Mono CJK TC</string>
		</edit>
	</match>

	<!-- Korean -->
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>ko</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans CJK KR</string>
			<string>NanumGothic</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
		<string>serif</string>
		</test>
		<test name="lang" compare="eq">
		<string>ko</string>
		</test>
		<edit name="family" mode="prepend">
			<string>NanumMyeongjo</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>ko</string>
		</test>
		<edit name="family" mode="prepend">
			<string>Noto Sans Mono CJK KR</string>
			<string>NanumGothicCoding</string>
		</edit>
	</match>

	<!-- Japanese -->
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>sans-serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>ja</string>
		</test>
		<edit name="family" mode="prepend">
			<string>IPAPGothic</string>
			<string>IPAexGothic</string>
			<string>M+ 1c</string>
			<string>M+ 1p</string>
			<string>VL PGothic</string>
			<string>Noto Sans CJK JP</string>
			<string>IPAGothic</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>serif</string>
		</test>
		<test name="lang" compare="eq">
			<string>ja</string>
		</test>
		<edit name="family" mode="prepend">
			<string>IPAPMincho</string>
			<string>IPAexMincho</string>
			<string>IPAMincho</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family" compare="eq">
			<string>monospace</string>
		</test>
		<test name="lang" compare="eq">
			<string>ja</string>
		</test>
		<edit name="family" mode="prepend">
			<string>IPAGothic</string>
			<string>M+ 1m</string>
			<string>VL Gothic</string>
			<string>Noto Sans Mono CJK JP</string>
		</edit>
	</match>

</fontconfig>
openSUSE Build Service is sponsored by