diff options
author | Carl Worth <cworth@cworth.org> | 2005-05-06 13:32:53 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-05-06 13:32:53 +0000 |
commit | d7fe527e0f48f23821b7283d8d003fd1f6a3f899 (patch) | |
tree | f6c328f6ff82dba87187bc6cfa265a4982c1ddce /test/text-cache-crash.c | |
parent | a790a2ea79507cae9564006ac32e27a0fcca8d60 (diff) | |
download | cairo-d7fe527e0f48f23821b7283d8d003fd1f6a3f899.tar.gz |
Eliminate the following deprecated functions from cairo's interface:
cairo_copy cairo_get_path cairo_get_path_flat cairo_matrix_create cairo_matrix_destroy cairo_matrix_copy cairo_matrix_get_affine cairo_surface_set_repeat cairo_surface_set_matrix cairo_surface_get_matrix cairo_surface_set_filter cairo_surface_get_filter
Also, eliminate all support for compiling against, or running with old, deprecated names for functions.
Deal with all of the removals.
Diffstat (limited to 'test/text-cache-crash.c')
-rw-r--r-- | test/text-cache-crash.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/text-cache-crash.c b/test/text-cache-crash.c index 188852e58..547e2a34c 100644 --- a/test/text-cache-crash.c +++ b/test/text-cache-crash.c @@ -73,13 +73,15 @@ static cairo_test_status_t draw (cairo_t *cr, int width, int height) { /* Once there was a bug that choked when selecting the same font twice. */ - cairo_select_font(cr, "sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); - cairo_set_font_size(cr, 40.0); - - cairo_select_font(cr, "sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); - cairo_set_font_size(cr, 40.0); - cairo_move_to(cr, 10, 50); - cairo_show_text(cr, "hello"); + cairo_select_font_face (cr, "sans", + CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); + cairo_set_font_size (cr, 40.0); + + cairo_select_font_face (cr, "sans", + CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); + cairo_set_font_size (cr, 40.0); + cairo_move_to (cr, 10, 50); + cairo_show_text (cr, "hello"); /* Then there was a bug that choked when selecting a font too big * for the cache. */ |