summaryrefslogtreecommitdiff
path: root/test/clip-zero.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2015-04-16 11:59:02 +0200
committerAndrea Canciani <ranma42@gmail.com>2015-07-27 12:45:59 +0200
commite1353f3b859d28dc3f5a9d4fb4496085240a8c68 (patch)
treef23737d6dc0d1fbfc7b725505f5d01dbce7d7a93 /test/clip-zero.c
parent6951fb4238706522d357fd25236b17492baea1b0 (diff)
downloadcairo-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/clip-zero.c')
-rw-r--r--test/clip-zero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/clip-zero.c b/test/clip-zero.c
index 5afd1b561..302b2b161 100644
--- a/test/clip-zero.c
+++ b/test/clip-zero.c
@@ -46,7 +46,7 @@ draw (cairo_t *cr, int width, int height)
cairo_stroke_preserve (cr);
cairo_paint (cr);
- cairo_select_font_face (cr, "sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
+ cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_show_text (cr, "ABC");
cairo_mask (cr, cairo_get_source (cr));