diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-04-21 03:43:04 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-04-21 03:43:04 -0400 |
commit | 79098c037043f45df0a18265417e96d6214d68e1 (patch) | |
tree | b1eb0215602fe91108e9b922c7fcba20a40fa12c /test | |
parent | 44563161de82a5ee7bbf8f100213ea1a3af6d5db (diff) |
[scaled-font] Get rid of _cairo_scaled_font_test_set_max_glyphs_cached_per_font
in favor of cairo_boilerplate_scaled_font_set_max_glyphs_cached.
Diffstat (limited to 'test')
-rw-r--r-- | test/glyph-cache-pressure.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/glyph-cache-pressure.c b/test/glyph-cache-pressure.c index ba90fa362..72044ee63 100644 --- a/test/glyph-cache-pressure.c +++ b/test/glyph-cache-pressure.c @@ -24,7 +24,7 @@ */ #include "cairo-test.h" -#include "cairo-scaled-font-test.h" +#include "cairo-boilerplate-scaled-font.h" #define TEXT_SIZE 12 @@ -67,8 +67,6 @@ draw (cairo_t *cr, int width, int height) cairo_paint (cr); cairo_restore (cr); - _cairo_scaled_font_test_set_max_glyphs_cached_per_font (1); - cairo_select_font_face (cr, "Bitstream Vera Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); @@ -76,6 +74,8 @@ draw (cairo_t *cr, int width, int height) cairo_set_source_rgb (cr, 0, 0, 0); /* black */ + cairo_boilerplate_scaled_font_set_max_glyphs_cached (cairo_get_scaled_font (cr), 1); + cairo_move_to (cr, 1, TEXT_SIZE); cairo_show_text (cr, "the five boxing wizards jump quickly"); |