summaryrefslogtreecommitdiff
path: root/test/text-antialias-subpixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/text-antialias-subpixel.c')
-rw-r--r--test/text-antialias-subpixel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/text-antialias-subpixel.c b/test/text-antialias-subpixel.c
index aba98908..af0112a8 100644
--- a/test/text-antialias-subpixel.c
+++ b/test/text-antialias-subpixel.c
@@ -53,16 +53,12 @@ draw (cairo_t *cr, int width, int height)
CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, TEXT_SIZE);
- /* Sub-pixel antialiasing with unhinted glyphs can be pretty ugly
- * (bad color fringing). The reason we turn off hints here is to
- * try to get repeatable glyph shapes on multiple systems, not for
- * any aesthetic reason. */
font_options = cairo_font_options_create ();
-
- cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
+ cairo_get_font_options (cr, font_options);
cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_SUBPIXEL);
cairo_font_options_set_subpixel_order (font_options, CAIRO_SUBPIXEL_ORDER_RGB);
cairo_set_font_options (cr, font_options);
+
cairo_font_options_destroy (font_options);
cairo_set_source_rgb (cr, 0, 0, 0); /* black */