diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2006-07-31 15:17:15 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2006-07-31 15:17:15 -0400 |
commit | 2fa709d6af58713f7b362748a728a6f8c983d2ec (patch) | |
tree | e20d9d932d74d48d5af323339156d66f657f5abf /test/glyph-cache-pressure.c | |
parent | 9fcb3c32c1f16fe6ab913e27eb54d18b7d9a06b0 (diff) | |
download | cairo-2fa709d6af58713f7b362748a728a6f8c983d2ec.tar.gz |
Set font options in the test context and make tests not do that
This should help with not requiring many backend-specific reference
images, and some should be removed now.
Diffstat (limited to 'test/glyph-cache-pressure.c')
-rw-r--r-- | test/glyph-cache-pressure.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/glyph-cache-pressure.c b/test/glyph-cache-pressure.c index 5b5e6c45d..ba90fa362 100644 --- a/test/glyph-cache-pressure.c +++ b/test/glyph-cache-pressure.c @@ -61,8 +61,6 @@ cairo_test_t test = { static cairo_test_status_t draw (cairo_t *cr, int width, int height) { - cairo_font_options_t *font_options; - /* We draw in the default black, so paint white first. */ cairo_save (cr); cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); /* white */ @@ -76,14 +74,6 @@ draw (cairo_t *cr, int width, int height) CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size (cr, TEXT_SIZE); - font_options = cairo_font_options_create (); - - cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE); - cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_GRAY); - - cairo_set_font_options (cr, font_options); - cairo_font_options_destroy (font_options); - cairo_set_source_rgb (cr, 0, 0, 0); /* black */ cairo_move_to (cr, 1, TEXT_SIZE); |