Bug 13335

Summary: "hintstyle=hintslight" setting is ignored even if "rgba=none"
Product: cairo Reporter: Yasuhiro Fujii <y-fujii>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: brebs, pachoramos1
Version: 1.5.3   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Yasuhiro Fujii 2007-11-21 08:06:18 UTC
"hintstyle" setting on fonts.conf seems to be ignored.
I understand it is impossible to set "rgba=rgb" and "hintstyle=hintslight" at the same time because of freetype restriction.
But even if "rgba=none", "hintstyle" setting is ignored.

A patch to fix this bug:
--- cairo-1.4.10/src/cairo-ft-font.c
+++ cairo-1.4.10/src/cairo-ft-font.c
@@@ -1404,7 +1616,7 @@
    options->base.subpixel_order = other->base.subpixel_order;
     }

-    if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT)
+    if (other->base.hint_style != CAIRO_HINT_STYLE_DEFAULT)
    options->base.hint_style = other->base.hint_style;

     if (other->base.hint_style == CAIRO_HINT_STYLE_NONE)
Comment 1 Paul Bredbury 2008-09-29 15:19:41 UTC
Looks very similar to bug 11838.
Comment 2 Chris Wilson 2008-10-10 14:55:53 UTC
They do indeed seem to be describing the same bug...

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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.