home *** CD-ROM | disk | FTP | other *** search
- <fontconfig>
-
- <!-- Turn on antialias and hinting with hintmedium -->
- <match target="font" >
- <edit mode="assign" name="antialias" >
- <bool>true</bool>
- </edit>
- </match>
- <match target="font" >
- <edit mode="assign" name="hinting" >
- <bool>true</bool>
- </edit>
- </match>
- <match target="font" >
- <edit mode="assign" name="hintstyle" >
- <const>hintmedium</const>
- </edit>
- </match>
-
- <!-- Control spacing property for Korean -->
- <match target="font">
- <test name="lang" compare="contains">
- <string>ko</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>ko</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>
-
- <!-- Turn off antialias and autohint for Korean fonts depending on pixelsize -->
- <match target="font">
- <test name="lang" compare="contains">
- <string>ko</string>
- </test>
- <test name="pixelsize" compare="more">
- <int>10</int>
- </test>
- <test name="pixelsize" compare="less">
- <int>22</int>
- </test>
- <edit name="antialias" mode="assign">
- <bool>false</bool>
- </edit>
- <edit name="autohint" mode="assign">
- <bool>false</bool>
- </edit>
- <edit name="hintstyle" mode="assign">
- <const>hintmedium</const>
- </edit>
- </match>
-
- <!-- Turn on antialias and hinting with hintmedium for ttf-Unfonts -->
- <match target="font">
- <test name="family" compare="contains">
- <string>Un</string>
- </test>
- <edit name="antialias" mode="assign">
- <bool>true</bool>
- </edit>
- <edit name="hinting" mode="assign">
- <bool>true</bool>
- </edit>
- <edit name="hintsytle" mode="assign">
- <const>hintmedium</const>
- </edit>
- </match>
-
- <!-- Turn off antialias and autohint for ttf-alee depending on pixelsize -->
- <match target="font">
- <test name="family">
- <string>EunGuseul</string>
- </test>
- <edit name="autohint" mode="assign">
- <bool>true</bool>
- </edit>
- </match>
- <match target="font">
- <test name="family">
- <string>EunGuseul</string>
- <string>EunGuseul Mono</string>
- </test>
- <test name="pixelsize" compare="more">
- <int>11</int>
- </test>
- <test name="pixelsize" compare="less">
- <int>16</int>
- </test>
- <edit name="antialias" mode="assign">
- <bool>false</bool>
- </edit>
- <edit name="autohint" mode="assign">
- <bool>false</bool>
- </edit>
- </match>
-
- <!-- Set preferred Korean fonts -->
- <match target="font">
- <test name="lang" compare="contains">
- <string>ko</string>
- </test>
- <alias>
- <family>serif</family>
- <prefer>
- <family>UnBatang</family>
- </prefer>
- </alias>
- </match>
- <match target="font">
- <test name="lang" compare="contains">
- <string>ko</string>
- </test>
- <alias>
- <family>sans-serif</family>
- <prefer>
- <family>UnDotum</family>
- <family>EunGuseul</family>
- </prefer>
- </alias>
- </match>
- <match target="font">
- <test name="lang" compare="contains">
- <string>ko</string>
- </test>
- <alias>
- <family>monospace</family>
- <prefer>
- <family>UnDotum</family>
- <family>EunGuseul Mono</family>
- </prefer>
- </alias>
- </match>
-
- <!-- Bind EunGuseul with Bitstream Vera Sans -->
- <match target="pattern">
- <test name="family">
- <string>EunGuseul</string>
- </test>
- <edit mode="append" binding="strong" name="family">
- <string>Bitstream Vera Sans</string>
- </edit>
- </match>
-
- <!-- Bind EunGuseul Mono with Bitstream Vera Sans Mono -->
- <match target="pattern">
- <test name="family">
- <string>EunGuseul Mono</string>
- </test>
- <edit mode="append" binding="strong" name="family">
- <string>Bitstream Vera Sans Mono</string>
- </edit>
- </match>
-
- </fontconfig>
-