summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-02-27 23:12:12 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-02-27 23:12:12 +0000
commit9cab8f2a00d8842d0cbd9912e401a10700d04e77 (patch)
tree0264ce1464f390c41651e6fd6f0cd9a6a9f6a603
parent9cee4c21958ad8f27630696e0dab0f15986a1b9f (diff)
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@
-rw-r--r--lib/fontconfig/conf.d/31-nonmst.conf112
-rw-r--r--lib/fontconfig/conf.d/Makefile.am2
-rw-r--r--lib/fontconfig/conf.d/Makefile.in2
3 files changed, 116 insertions, 0 deletions
diff --git a/lib/fontconfig/conf.d/31-nonmst.conf b/lib/fontconfig/conf.d/31-nonmst.conf
new file mode 100644
index 000000000..7ba69b349
--- /dev/null
+++ b/lib/fontconfig/conf.d/31-nonmst.conf
@@ -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>
+
diff --git a/lib/fontconfig/conf.d/Makefile.am b/lib/fontconfig/conf.d/Makefile.am
index bad95a70e..9a8206221 100644
--- a/lib/fontconfig/conf.d/Makefile.am
+++ b/lib/fontconfig/conf.d/Makefile.am
@@ -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 \
diff --git a/lib/fontconfig/conf.d/Makefile.in b/lib/fontconfig/conf.d/Makefile.in
index e0fea940c..e00b19bd0 100644
--- a/lib/fontconfig/conf.d/Makefile.in
+++ b/lib/fontconfig/conf.d/Makefile.in
@@ -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 \