summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-03-09 13:59:49 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-03-09 13:59:49 +0000
commitbde6772e0a5e792a66d036ebd2478689b2eab439 (patch)
tree24f09d224abd9106efc5fc4fdb0949ee7c075068
parent509c439302e0bd1a27492a0dc7a6c8b980991811 (diff)
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.
-rw-r--r--dist/fontconfig/conf.d/31-nonmst.conf64
1 files changed, 64 insertions, 0 deletions
diff --git a/dist/fontconfig/conf.d/31-nonmst.conf b/dist/fontconfig/conf.d/31-nonmst.conf
new file mode 100644
index 000000000..7be4989d6
--- /dev/null
+++ b/dist/fontconfig/conf.d/31-nonmst.conf
@@ -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>