diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-06-12 16:20:37 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-06-12 16:30:56 +0200 |
commit | 3cb882d01b53cb3cec9be62d678dd4ef7ea2c1fd (patch) | |
tree | d83cb8fa93bf3f9e72d124c8de6316779cb5fc0e /test/inverse-text.c | |
parent | b1e4df928fb59ee295830d5c0fa26330714f88f2 (diff) | |
download | cairo-3cb882d01b53cb3cec9be62d678dd4ef7ea2c1fd.tar.gz |
test: make test font family a define
In order to make it easier to change the test font family, add it
as a define in the global header and always reference the macro in
the tests.
Diffstat (limited to 'test/inverse-text.c')
-rw-r--r-- | test/inverse-text.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/inverse-text.c b/test/inverse-text.c index 555122085..c8d7aea62 100644 --- a/test/inverse-text.c +++ b/test/inverse-text.c @@ -41,17 +41,17 @@ draw (cairo_t *cr, int width, int height) cairo_set_font_size (cr, TEXT_SIZE); cairo_move_to (cr, 0, TEXT_SIZE); - cairo_select_font_face (cr, "Bitstream Vera Serif", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_show_text (cr, "i-am-serif"); - cairo_select_font_face (cr, "Bitstream Vera Sans", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_show_text (cr, " i-am-sans"); - cairo_select_font_face (cr, "Bitstream Vera Sans Mono", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Sans Mono", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_show_text (cr, " i-am-mono"); |