chiark / gitweb /
fonts.conf: New configuration file.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 14 Dec 2008 18:58:55 +0000 (18:58 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 Dec 2008 19:01:43 +0000 (19:01 +0000)
Finally with the right hacking (as best I can make it) to achieve the
Fixed 6x13 font through fontconfig.

fonts.conf [new file with mode: 0644]
setup

diff --git a/fonts.conf b/fonts.conf
new file mode 100644 (file)
index 0000000..c6afc8b
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version='1.0'?>
+<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
+
+<fontconfig>
+
+  <!-- Hacking for the fixed font.
+    
+       After many half-hearted attempts to make this work properly, I'm
+       finally settling on this approach: define MiscFixed6x13 as a
+       magic name for the right font, and then hack configuration files
+       as necessary to make them use it.
+    -->
+  <match target="pattern">
+    <test name="family"><string>MiscFixed6x13</string></test>
+    <!--test name="size"><double>12</double</test-->
+    <edit name="style"><string>SemiCondensed</string></edit>
+    <edit name="family"><string>Fixed</string></edit>
+    <edit name="foundry"><string>Misc</string></edit>
+    <edit name="dpi"><int>75</int></edit>
+    <edit mode="assign" name="pixelsize"> <double>13</double> </edit>
+  </match>
+
+  <!-- Hacking for the symbol font.
+    
+       This seems to be necessary to get Iceweasel/Firefox to do the
+       right thing with MathML and suchlike.
+    -->
+  <match target="pattern">
+    <test name="family">
+      <string>symbol</string>
+    </test>
+    <edit binding="strong" mode="append" name="family">
+      <string>Standard Symbols L</string>
+    </edit>
+  </match>
+
+  <!-- KDE put this here, but it seems worthwhile.
+    
+       Modified so as to force slight hinting rather than medium,
+       because that actually seems to produce more legible characters.
+    -->
+  <match target="font">
+    <edit mode="assign" name="rgba"><const>none</const></edit>
+    <edit mode="assign" name="hinting"><bool>true</bool></edit>
+    <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
+    <edit mode="assign" name="antialias"><bool>true</bool></edit>
+  </match>
+</fontconfig>
diff --git a/setup b/setup
index 183ea64a22cef0cda5427b488d9382adab0881df..e2ef334b027445b2362d1a0906313fbca3a5e504 100755 (executable)
--- a/setup
+++ b/setup
@@ -144,6 +144,7 @@ dotfiles="
   dircolors colordiffrc screenrc cvsrc indent.pro"
 [ "$xstuff" ] && dotfiles="$dotfiles
   xinitrc xsession Xdefaults vncrc vncsession
+  fonts.conf
   putty-defaults:.putty/sessions/Default%20Settings
   eterm-theme.cfg:.Eterm/themes/Eterm/theme.cfg
   e-keybindings.cfg:.enlightenment/keybindings.cfg