font settings in .fonts.conf ignored

Bug #293643 reported by mbana
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cairo
Unknown
Unknown
cairo (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: fontconfig

The following doesn't work unless I use;

    <edit name="autohint" mode="assign"><bool>true</bool></edit>

What I thought should work;

    <match target="font">
        <test compare="eq" name="family">
            <string>Consolas</string>
        </test>
        <edit mode="assign" name="hintstyle">
            <const>hintslight</const>
        </edit>
    </match>

What actually works;

    <match target="font">
        <test compare="eq" name="family">
            <string>Consolas</string>
        </test>
        <edit name="rgba" mode="assign"><const>rgb</const></edit>
        <edit name="autohint" mode="assign"><bool>true</bool></edit>
        <edit name="antialias" mode="assign"><bool>true</bool></edit>
        <edit name="hinting" mode="assign"><bool>true</bool></edit>
        <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
    </match

I've been told that this is a bug. See http://forums.fedoraforum.org/showthread.php?t=186789&page=7 for more information and my old .fonts.conf; http://pastebin.com/m1b3fbe51 .

Revision history for this message
Paul Bredbury (brebs) wrote :

You haven't explained what all your other fontconfig rules (in /etc/fonts/ and ~/.fonts.conf) set rgba, autohint, antialias and hinting to. So this bug report doesn't make much sense ;)

Revision history for this message
mbana (m.bana) wrote :

Paul: My entire .fonts.conf; http://pastebin.com/md7787ec. I've also attached it.

The issue is the following should work;

    <match target="font">
        <test compare="eq" name="family">
            <string>Consolas</string>
        </test>
        <edit mode="assign" name="hintstyle">
            <const>hintslight</const>
        </edit>
    </match>

and I shouldn't have to also specify

    <edit name="autohint" mode="assign"><bool>true</bool></edit>

Revision history for this message
Paul Bredbury (brebs) wrote :

Pastebin messes up your file - line 9 is missing!

Here's a ~/.fonts.conf to use as a proper test.

Exactly which font file are you using? Make it easy for people to reproduce your problem. State a URL to the font, and/or its version number (shown by gnome-font-viewer) and exact filesize.

Next, recompile cairo with cairo-respect-fontconfig.patch, reboot and see if it fixes the problem ;)

URL for the patch:

ftp://brebs.me.uk/fedora/9/cairo-respect-fontconfig.patch

Info:

http://bugs.freedesktop.org/show_bug.cgi?id=11838
http://bugs.freedesktop.org/show_bug.cgi?id=13335
https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/209256
http://forums.fedoraforum.org/showthread.php?p=1094309#post1094309

Revision history for this message
kurt belgrave (trinikrono) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner.
There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test the current Ubuntu development version (10.10). If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect <bug #>, and any other logs that are relevant for this particular issue.

Changed in fontconfig (Ubuntu):
status: New → Incomplete
Revision history for this message
kurt belgrave (trinikrono) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Paul Bredbury (brebs) wrote :

It's a known bug, which upstream seem to enjoy ignoring:

http://bugs.freedesktop.org/show_bug.cgi?id=11838

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Reassigning to cairo per comment #6

affects: fontconfig (Ubuntu) → cairo (Ubuntu)
Changed in cairo (Ubuntu):
status: Incomplete → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.