Add a substitution from fonts that map to ugly bitmapped ones to

bitstream-vera. Most of the work done by martynas@ and deraadt@,
with inputs and tests from naddy@, todd@ and lots of others.
ok deraadt@
This commit is contained in:
matthieu 2009-02-27 23:12:11 +00:00
parent 9831852bee
commit 6d7de40c77
3 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,112 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
$OpenBSD: 31-nonmst.conf,v 1.1 2009/02/27 23:12:11 matthieu Exp $
Replacement using Bitstream Vera fonts.
-->
<match target="pattern">
<test qual="any" name="family">
<string>Times New Roman</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Times</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Arial</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Courier</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
</fontconfig>
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
$OpenBSD: 31-nonmst.conf,v 1.1 2009/02/27 23:12:11 matthieu Exp $
Replacement using Liberation fonts.
-->
<match target="pattern">
<test qual="any" name="family">
<string>Times New Roman</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Times</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Arial</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Courier</string>
</test>
<edit name="family" mode="assign">
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
</fontconfig>

View File

@ -35,6 +35,7 @@ CONF_FILES = \
20-unhint-small-vera.conf \
30-amt-aliases.conf \
30-urw-aliases.conf \
31-nonmst.conf \
40-generic.conf \
49-sansserif.conf \
50-user.conf \
@ -55,6 +56,7 @@ CONF_LINKS = \
20-unhint-small-vera.conf \
30-amt-aliases.conf \
30-urw-aliases.conf \
31-nonmst.conf \
40-generic.conf \
49-sansserif.conf \
50-user.conf \

View File

@ -243,6 +243,7 @@ CONF_FILES = \
20-unhint-small-vera.conf \
30-amt-aliases.conf \
30-urw-aliases.conf \
31-nonmst.conf \
40-generic.conf \
49-sansserif.conf \
50-user.conf \
@ -263,6 +264,7 @@ CONF_LINKS = \
20-unhint-small-vera.conf \
30-amt-aliases.conf \
30-urw-aliases.conf \
31-nonmst.conf \
40-generic.conf \
49-sansserif.conf \
50-user.conf \