bad rendering showing text with CAIRO_ANTIALIAS_BEST
Submitted by Jason Crain
Assigned to Chris Wilson @ickle
Description
Created attachment 128375 image of bad text rendering
Setting the antialias font option to CAIRO_ANTIALIAS_BEST makes text rendering bad, as shown in the following program.
cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 80, 40); cairo_t *cr = cairo_create (surface); cairo_move_to (cr, 5, 30); cairo_set_font_size (cr, 30); cairo_font_options_t *font_options = cairo_font_options_create (); cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_BEST); cairo_set_font_options (cr, font_options); cairo_show_text (cr, "hello"); cairo_surface_write_to_png (surface, "out.png");