[cairo-bugs] [Bug 10415] New: patch to make rendering settings from gnome-font-properties work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 18 06:45:06 PST 2007


           Summary: patch to make rendering settings from gnome-font-
                    properties work
           Product: cairo
           Version: 1.4.0
          Platform: Other
        OS/Version: All
            Status: RESOLVED
          Severity: normal
          Priority: medium
         Component: freetype font backend
        AssignedTo: freedesktop at behdad.org
        ReportedBy: sbrabec at suse.cz
         QAContact: cairo-bugs at cairographics.org

Attached patch is from openSUSE Build.

Author: Mike Fabian

This patch makes the rendering settings from gnome-font-properties work.

For example in case of the antialias option:

Without the patch, cairo will add the antialias option to the
fontconfig pattern only if it is not already there. But the option
might already be in the pattern because a fontconfig setup file in
/etc/fonts or ~/.fonts.conf adds it ot the pattern.

With the patch, cairo first deletes the antialias option from the
pattern unconditionally, then adds its own value of this option.

Same for the other options like rgba, hinting, and hintstyle.

When doing it like this, the settings in gnome-font-properties
are preferred over any rules like

        <match target="pattern">
                <edit name="autohint">
                <edit name="hintstyle">
                <edit name="antialias">

in a fontconfig setup file. I.e. such rules will then only set a
default if nothing is set in gnome-font-properties or if a desktop
different from gnome is used.

If there are rules like

        <match target="font">
                <edit name="autohint">
                <edit name="antialias">

in a fontconfig setup file which match on "font" instead of "pattern",
these rules will stil win over the settings in gnome-font-properties.

Therefore, the default systemwide fontconfig setup in /etc/fonts
should avoid using rules matching on "font" for setting options which
can also be changed in gnome-font-properties.

Reference: https://bugzilla.novell.com/show_bug.cgi?id=104365

------- Comment #1 from sbrabec at suse.cz  2007-03-26 08:26 PST -------
Bugzilla problems.

*** This bug has been marked as a duplicate of bug 10413 ***

Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the cairo-bugs mailing list