On Sun, Jan 08, 2012 at 09:19:13PM +0100, Tobias Ulmer wrote:
> Ever wondered why xkcd.com looks so bad on OpenBSD?
> 
> This diff adds Dejavu replacements for the generic "Lucida" family as
> well as replacements for all Lucida-type fonts shipped with OSX and
> Windows.
> 
> Test: http://www.tmux.org/~tobiasu/tmp/fonttest.html

As I told Tobias in private, I would prefer the simpler patch below.
It also fixes his issue, and is less intrusive when one has real
truetype Lucida fonts installed.

Also luxi sans is closer to lucida in its design.

Index: 31-nonmst.conf
===================================================================
RCS file: /cvs/OpenBSD/xenocara/lib/fontconfig/conf.d/31-nonmst.conf,v
retrieving revision 1.3
diff -u -r1.3 31-nonmst.conf
--- 31-nonmst.conf      21 Jan 2010 19:57:57 -0000      1.3
+++ 31-nonmst.conf      9 Jan 2012 21:33:20 -0000
@@ -61,4 +61,13 @@
                </edit>
        </match>
 
+       <match target="pattern">
+               <test qual="any" name="family">
+                       <string>Lucida</string>
+               </test>
+               <edit name="family" mode="assign">
+                       <string>Luxi Sans</string>
+               </edit>
+       </match>
+
 </fontconfig>

-- 
Matthieu Herrb

Reply via email to