Re: Improve Lucida font family look

2012-01-10 Thread Matthieu Herrb
Ok here's a different approach. Install this new file as
/etc/fonts/conf.d/30-lucida-aliases.conf for testing.

(I'll provide the full patch to have it installed, but since it
involves autotool magic, the patch is going to be too large).

This file replaces ugly bitmapped fonts with true type ones and
provides reasonable aliases for the various lucida names that are
found on the web according to Tobias' test.

If you have real lucida fonts installed, they will still be picked
up. 
!DOCTYPE fontconfig SYSTEM fonts.dtd
fontconfig
!--
Provides alternatives for various Lucida fonts
  --
!-- Substitutions for ugly bitmap fonts --
match target=pattern
  test qual=any name=family
stringLucida/string
  /test
  edit name=family mode=assign
stringLucida Sans/string
  /edit
/match
match target=pattern
  test qual=any name=family
stringLucidaBright/string
  /test
  edit name=family mode=assign
stringLucida Bright/string
  /edit
/match
match target=pattern
  test qual=any name=family
stringLucidaTypewriter/string
  /test
  edit name=family mode=assign
stringLucida Sans Typewriter/string
  /edit
/match
!-- Aliases --
alias binding=same
  familyLucida/family
  accept
familyLuxi Sans/family
  /accept
/alias
alias binding=same
  familyLucida Grande/family
  accept
familyLucida Sans/family
familyLuxi Sans/family
/accept
/alias
alias binding=same
  familyLucida Sans Unicode/family
  accept
familyLucida Sans/family
familyLuxi Sans/family
/accept
/alias
alias binding=same
  familyLucida Sans/family
  acceptfamilyLuxi Sans/family/accept
/alias
alias binding=same
  familyLucida Sans Typewriter/family
  accept
familyDejaVu Sans Mono/family
  /accept
/alias
alias binding=same
  familyLucida Console/family
  accept
familyLucida Sans Typewriter/family
familyDejaVu Sans Mono/family
  /accept
/alias
alias binding=same
  familyLucida Bright/family
  accept
familyLuxi Serif/family
  /accept
/alias
/fontconfig
--- Cut here ---
-- 
Matthieu Herrb



Re: Improve Lucida font family look

2012-01-09 Thread Matthieu Herrb
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 -  1.3
+++ 31-nonmst.conf  9 Jan 2012 21:33:20 -
@@ -61,4 +61,13 @@
/edit
/match
 
+   match target=pattern
+   test qual=any name=family
+   stringLucida/string
+   /test
+   edit name=family mode=assign
+   stringLuxi Sans/string
+   /edit
+   /match
+
 /fontconfig

-- 
Matthieu Herrb



Improve Lucida font family look

2012-01-08 Thread Tobias Ulmer
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

Index: 31-nonmst.conf
===
RCS file: /home/vcs/cvs/openbsd/xenocara/lib/fontconfig/conf.d/31-nonmst.conf,v
retrieving revision 1.3
diff -u -p -r1.3 31-nonmst.conf
--- 31-nonmst.conf  21 Jan 2010 19:57:57 -  1.3
+++ 31-nonmst.conf  8 Jan 2012 20:05:03 -
@@ -61,4 +61,49 @@
/edit
/match
 
+   match target=pattern
+   test qual=any name=family
+   stringLucida/string
+   /test
+   edit name=family mode=assign
+   stringDejaVu Sans/string
+   /edit
+  /match
+
+   match target=pattern
+   test qual=any name=family
+   stringLucida Grande/string
+   /test
+   edit name=family mode=assign
+   stringDejaVu Sans/string
+   /edit
+  /match
+
+   match target=pattern
+   test qual=any name=family
+   stringLucida Sans Unicode/string
+   /test
+   edit name=family mode=assign
+   stringDejaVu Sans/string
+   /edit
+  /match
+
+   match target=pattern
+   test qual=any name=family
+   stringLucida Sans Typewriter/string
+   /test
+   edit name=family mode=assign
+   stringDejaVu Sans Mono/string
+   /edit
+  /match
+
+   match target=pattern
+   test qual=any name=family
+   stringLucida Console/string
+   /test
+   edit name=family mode=assign
+   stringDejaVu Sans Mono/string
+   /edit
+  /match
+
 /fontconfig