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">
            <string>Lucida</string>
          </test>
          <edit name="family" mode="assign">
            <string>Lucida Sans</string>
          </edit>
        </match>
        <match target="pattern">
          <test qual="any" name="family">
            <string>LucidaBright</string>
          </test>
          <edit name="family" mode="assign">
            <string>Lucida Bright</string>
          </edit>
        </match>
        <match target="pattern">
          <test qual="any" name="family">
            <string>LucidaTypewriter</string>
          </test>
          <edit name="family" mode="assign">
            <string>Lucida Sans Typewriter</string>
          </edit>
        </match>
        <!-- Aliases -->
        <alias binding="same">
          <family>Lucida</family>
          <accept>
                <family>Luxi Sans</family>
          </accept>
        </alias>
        <alias binding="same">
          <family>Lucida Grande</family>
          <accept>
                <family>Lucida Sans</family>
                <family>Luxi Sans</family>
        </accept>
        </alias>
        <alias binding="same">
          <family>Lucida Sans Unicode</family>
          <accept>
                <family>Lucida Sans</family>
                <family>Luxi Sans</family>
        </accept>
        </alias>
        <alias binding="same">
          <family>Lucida Sans</family>
          <accept><family>Luxi Sans</family></accept>
        </alias>
        <alias binding="same">
          <family>Lucida Sans Typewriter</family>
          <accept>
                <family>DejaVu Sans Mono</family>
          </accept>
        </alias>
        <alias binding="same">
          <family>Lucida Console</family>
          <accept>
                <family>Lucida Sans Typewriter</family>
                <family>DejaVu Sans Mono</family>
          </accept>
        </alias>
        <alias binding="same">
          <family>Lucida Bright</family>
          <accept>
                <family>Luxi Serif</family>
          </accept>
        </alias>
</fontconfig>
--- Cut here ---
-- 
Matthieu Herrb

Reply via email to