fontconfig/16-suse-hintstyle.conf
Marguerite Su 2ec180baa3 Accepting request 124898 from home:tiwai:branches:M17N
- Revisit SUSE-specific config (bnc#766319):
  * Split suse-hinting.conf to a part defining the default
    autohint and a part defining the default hintstyle depending on
    autohint.  These are now put in conf.d/11-suse-hinting.conf and
    16-suse-hintstyle.conf, so that extra packages may put their
    own autohint value between them.
  * Move suse-bitmaps.conf to conf.d, too
  * Move optional configs modified by fonts-config to fonts-config
    package itself
- Set autohint=true for IPA* fonts as well as MS fonts;
  hintslight will be chosen automatically (bnc#766319)
- Add missing IPAex* fonts to suse-generic-names.conf lists.
- Obsolete ipa-fonts-config package as the default configs are now
  included in this package

OBS-URL: https://build.opensuse.org/request/show/124898
OBS-URL: https://build.opensuse.org/package/show/M17N/fontconfig?expand=0&rev=82
2012-06-14 09:52:35 +00:00

123 lines
2.6 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Default setup of hintstyle -->
<!--
bug#722427
general advice: use hintfull for BCI, hintlight for autohinter
exceptions will follow
-->
<match target="font">
<test name="autohint">
<bool>false</bool>
</test>
<edit name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<test name="autohint">
<bool>true</bool>
</test>
<edit name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<!--
exceptions:
-->
<!-- Following fonts seems to be nicer (thicker) with hintslight instead
of hintfull:
Liberation Sans
DejaVu Sans
Droid Sans
Liberation Serif
DejaVu Serif
Droid Serif
Following are better to render with hintfull, because they are too
blurred with hintslight:
Liberation Mono
DejaVu Sans Mono
Droid Sans Mono
-->
<match target="font">
<test name="family">
<string>Liberation Sans</string>
</test>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<test name="family">
<string>DejaVu Sans</string>
</test>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<test name="family">
<string>Droid Sans</string>
</test>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<test name="family">
<string>Liberation Serif</string>
</test>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<test name="family">
<string>DejaVu Serif</string>
</test>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<test name="family">
<string>Droid Serif</string>
</test>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
</match>
<!-- Cantarell: according to coauthor, cantarell doesn't have
any byte code, so following should give the best results
on most monitors -->
<match target="font">
<test name="family">
<string>Cantarell</string>
</test>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
</match>
</fontconfig>