Font rendering with CAIRO_ANTIALIAS_GRAY fails to produce grayscale antialiasing
Submitted by Ingo Ruhnke
Assigned to Carl Worth @cworth
Description
Trying to render a font with simple grayscale anti-aliasing, like:
cairo_font_options_t* fopts = cairo_font_options_create(); cairo_font_options_set_subpixel_order(fopts, CAIRO_SUBPIXEL_ORDER_DEFAULT); cairo_font_options_set_antialias(fopts, CAIRO_ANTIALIAS_GRAY); cairo_set_font_options(cr, fopts);
fails to work. The options are ignored and instead the resulting rendering will produce results identical with CAIRO_ANTIALIAS_SUBPIXEL with colored pixel around the edge instead of grayscale ones.
A simple example program reproducing the problem is attached.
Version: 1.10.2