diff options
author | Andrea Canciani <ranma42@gmail.com> | 2015-04-16 11:59:02 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2015-07-27 12:45:59 +0200 |
commit | e1353f3b859d28dc3f5a9d4fb4496085240a8c68 (patch) | |
tree | f23737d6dc0d1fbfc7b725505f5d01dbce7d7a93 /test/pthread-show-text.c | |
parent | 6951fb4238706522d357fd25236b17492baea1b0 (diff) | |
download | cairo-e1353f3b859d28dc3f5a9d4fb4496085240a8c68.tar.gz |
test: Always use DejaVu Sans as default font
This makes the results of the test suite more stable across different
environments, because it does not rely anymore on
CAIRO_FONT_FAMILY_DEFAULT (which on Windows is "Arial", on Mac
"Helvetica").
This change should not affect Linux environments, assuming that the
default font is already set to "DejaVu Sans".
Diffstat (limited to 'test/pthread-show-text.c')
-rw-r--r-- | test/pthread-show-text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pthread-show-text.c b/test/pthread-show-text.c index 0e070b7b7..0f076cb61 100644 --- a/test/pthread-show-text.c +++ b/test/pthread-show-text.c @@ -63,7 +63,7 @@ draw_thread (void *arg) cairo_paint (cr); cairo_set_source_rgb (cr, 0, 0, 0); - cairo_select_font_face (cr, "serif", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size (cr, NUM_ITERATIONS); @@ -74,7 +74,7 @@ draw_thread (void *arg) for (i = 0; i < NUM_ITERATIONS; i++) { char buf[2]; - cairo_select_font_face (cr, "serif", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size (cr, i); |