fonts.conf: New configuration file.
[profile] / fonts.conf
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>