Add a substitution from fonts that map to ugly bitmapped ones

Maps to DejaVu fonts. Most of the work done by martynas@
and deraadt@, with inputs and tests from naddy@, todd@
and lots of others.
This commit is contained in:
matthieu 2013-03-09 13:59:48 +00:00
parent 0bbce74883
commit cb861fcea9

64
dist/fontconfig/conf.d/31-nonmst.conf vendored Normal file
View File

@ -0,0 +1,64 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
$OpenBSD: 31-nonmst.conf,v 1.1 2013/03/09 13:59:48 matthieu Exp $
Replacement using DejaVu fonts.
-->
<match target="pattern">
<test qual="any" name="family">
<string>Times New Roman</string>
</test>
<edit name="family" mode="assign">
<string>DejaVu Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Times</string>
</test>
<edit name="family" mode="assign">
<string>DejaVu Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Arial</string>
</test>
<edit name="family" mode="assign">
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Courier</string>
</test>
<edit name="family" mode="assign">
<string>DejaVu Sans Mono</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Courier New</string>
</test>
<edit name="family" mode="assign">
<string>DejaVu Sans Mono</string>
</edit>
</match>
</fontconfig>