From 79098c037043f45df0a18265417e96d6214d68e1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 21 Apr 2007 03:43:04 -0400 Subject: [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. --- test/glyph-cache-pressure.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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"); -- cgit v1.2.3