andy0130tw
8/12/2017 - 5:31 AM

My font config core part as of Aug. 12, 2017.

My font config core part as of Aug. 12, 2017.

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

	<!-- Set fonts selection order for Chinese users -->
	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
        <test name="lang">
            <string>zh-tw</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <!--<string>Droid Sans Fallback</string>-->
            <string>Source Han Serif TC</string>
            <string>WenQuanYi Zen Hei</string>
            <!--<string>AR PL UMing TW</string>
			<string>AR PL UMing HK</string>
			<string>AR PL New Sung</string>
            <string>HYSong</string>-->
			<string>WenQuanYi Bitmap Song</string>
			<string>AR PL UKai TW</string>
			<string>AR PL UKai HK</string>
			<string>AR PL ZenKai Uni</string>
			<string>DejaVu Serif</string>
			<string>Bitstream Vera Serif</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
        <test name="lang">
            <string>zh-tw</string>
        </test>
		<edit name="family" mode="prepend" binding="strong">
            <!--<string>Droid Sans Fallback</string>-->
            <string>Cantarell</string>
            <string>Source Han Sans TC</string>
            <string>WenQuanYi Zen Hei</string>
            <!--<string>AR PL UMing TW</string>
			<string>AR PL UMing HK</string>
			<string>AR PL New Sung</string>
            <string>HYSong</string>-->
			<string>AR PL UKai TW</string>
			<string>AR PL UKai HK</string>
			<string>AR PL ZenKai Uni</string>
			<string>DejaVu Sans</string>
			<string>Bitstream Vera Sans</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
        <test name="lang">
            <string>zh-tw</string>
        </test>
		<edit name="family" mode="prepend" binding="strong">
            <string>Consolas</string>
            <string>Roboto Mono</string>
            <string>Ubuntu Mono</string>
            <string>Inconsolata</string>
            <string>WenQuanYi Micro Hei Mono</string>
            <string>Source Han Sans HW TC</string>
            <string>Droid Sans Fallback</string>
			<string>DejaVu Sans Mono</string>
			<string>Bitstream Vera Sans Mono</string>
		</edit>
	</match>

</fontconfig>