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/text-cache-crash.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/text-cache-crash.c')
-rw-r--r-- | test/text-cache-crash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/text-cache-crash.c b/test/text-cache-crash.c index 4786af4d5..27fe8cb42 100644 --- a/test/text-cache-crash.c +++ b/test/text-cache-crash.c @@ -66,11 +66,11 @@ 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_face (cr, "sans", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); cairo_set_font_size (cr, 40.0); - cairo_select_font_face (cr, "sans", + cairo_select_font_face (cr, CAIRO_TEST_FONT_FAMILY " Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); cairo_set_font_size (cr, 40.0); cairo_move_to (cr, 10, 50); |