<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
 -->

<!--
  Prefer bitmap	fonts if the option "prefer_bitmap" is set to true.
 -->

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>AR PL ShanHeiSun Uni</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>11</double>
	</test>
	<test name="pixelsize" compare="less">
		<double>16</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
</match>
<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>FZSongTi</string>
		<string>FZMingTi</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>11.5</double>
	</test>
	<test name="pixelsize" compare="less">
		<double>17.5</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
</match>
<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>SunDotum</string>
		<string>SunDotumChe</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>11</double>
	</test>
	<test name="pixelsize" compare="less">
		<double>25</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
</match>

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>HG-GothicB-Sun</string>
		<string>HG-PGothicB-Sun</string>
		<string>HG-MinchoL-Sun</string>
		<string>HG-PMinchoL-Sun</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>10</double>
	</test>
	<test name="pixelsize" compare="less">
		<double>22</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
</match>

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>MS Gothic</string>
		<string>MS PGothic</string>
		<string>MS UI Gothic</string>
		<string>MS Mincho</string>
		<string>MS PMincho</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>7</double>
	</test>
	<test name="pixelsize" compare="less_eq">
		<double>22</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
</match>

<match target="font">
	<test name="family">
		<string>IPAGothic</string>
		<string>IPAPGothic</string>
		<string>IPAUIGothic</string>
		<string>IPAMincho</string>
		<string>IPAPMincho</string>
	</test>
	<edit name="globaladvance" mode="assign">
		<bool>false</bool>
	</edit>
</match>

<!--
  Using embedded bitmaps are disabled by default for IPAfont.

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>IPAGothic</string>
		<string>IPAPGothic</string>
		<string>IPAUIGothic</string>
		<string>IPAMincho</string>
		<string>IPAPMincho</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>11</double>
	</test>
	<test name="pixelsize" compare="less_eq">
		<double>13</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
	<edit name="pixelsize" mode="assign">
		<double>12</double>
	</edit>
</match>

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>IPAGothic</string>
		<string>IPAPGothic</string>
		<string>IPAUIGothic</string>
		<string>IPAMincho</string>
		<string>IPAPMincho</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>13</double>
	</test>
	<test name="pixelsize" compare="less_eq">
		<double>15</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
	<edit name="pixelsize" mode="assign">
		<double>14</double>
	</edit>
</match>

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>IPAGothic</string>
		<string>IPAPGothic</string>
		<string>IPAUIGothic</string>
		<string>IPAMincho</string>
		<string>IPAPMincho</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>15</double>
	</test>
	<test name="pixelsize" compare="less_eq">
		<double>17</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
	<edit name="pixelsize" mode="assign">
		<double>16</double>
	</edit>
</match>
-->

<!--
  Using embedded bitmaps are disabled by default for Sazanami font.

<match target="font">
	<test name="prefer_bitmap">
		<bool>true</bool>
	</test>
	<test name="family">
		<string>Sazanami Gothic</string>
		<string>Sazanami Mincho</string>
	</test>
	<test name="pixelsize" compare="more_eq">
		<double>8</double>
	</test>
	<test name="pixelsize" compare="less">
		<double>21</double>
	</test>
	<edit name="antialias" mode="assign">
		<bool>false</bool>
	</edit>
</match>
-->

</fontconfig>
