24 Jan 2003 jooon   » (Journeyer)

fontconfig and xft2

I am very pleased with the result. Looks excellent on my laptop with sub pixles and all. Just did apt-get install mozilla-xft the other day, and surfing the web became a new experience again. Everything looked so nice. Except for some sites like advogato that wanted lucida and I didn't have a good lucida font installed. Or so I thought, locate -i lucida showed that Java came with a lucida truetype font. So I linked that dir to /usr/share/fonts/truetype/ and ran fc-cache. Didn't work. It still chose the ugly lucida bitmat font. I had to add the following to /etc/fonts/local.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <match target="pattern">
                <test qual="any" name="family">
                        <string>Lucida</string>
                </test>
                <edit name="family" mode="assign" binding="strong">
                        <string>Lucida Sans</string>
                </edit>
        </match>
</fontconfig>

After a while I figured the fontconfig syntax and meaning, but I am not really sure why bindings="strong" was needed. It won't work without it.

Some example advogato screenshots: without lucida truetype, with.

journeyer

It feels odd to be blue. Now I really have to live up to the expectations and prove myself. :)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!