[cairo-bugs] [Bug 40456] New: BGR subpixel font rendering is broken, produces RGB subpixel order rendering

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 29 05:09:23 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=40456

           Summary: BGR subpixel font rendering is broken, produces RGB
                    subpixel order rendering
           Product: cairo
           Version: 1.10.2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: grumbel at gmx.de
         QAContact: cairo-bugs at cairographics.org


BGR subpixel rendering is broken in 1.10.2, it always results in an image
identical to RGB subpixel rendering. The problem can be produced with code like
this:

    cairo_font_options_t* fopts = cairo_font_options_create();
    cairo_font_options_set_subpixel_order(fopts, CAIRO_SUBPIXEL_ORDER_BGR);
    cairo_font_options_set_antialias(fopts, CAIRO_ANTIALIAS_SUBPIXEL);
    cairo_set_font_options(cr, fopts);

Which will produce the same output as with CAIRO_SUBPIXEL_ORDER_RGB.

The problem is caused by a missing 'break' statement in a 'switch' in
src/cairo-ft-font.c. Patch for the issue is attached.

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


More information about the cairo-bugs mailing list