summaryrefslogtreecommitdiff
path: root/test/user-font-rescale.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-06-12 16:20:37 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-06-12 16:30:56 +0200
commit3cb882d01b53cb3cec9be62d678dd4ef7ea2c1fd (patch)
treed83cb8fa93bf3f9e72d124c8de6316779cb5fc0e /test/user-font-rescale.c
parentb1e4df928fb59ee295830d5c0fa26330714f88f2 (diff)
downloadcairo-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/user-font-rescale.c')
-rw-r--r--test/user-font-rescale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/user-font-rescale.c b/test/user-font-rescale.c
index 8d2e8978e..3fe70f605 100644
--- a/test/user-font-rescale.c
+++ b/test/user-font-rescale.c
@@ -312,7 +312,7 @@ draw (cairo_t *cr, int width, int height)
cairo_paint (cr);
cairo_select_font_face (cr,
- "Bitstream Vera Sans",
+ CAIRO_TEST_FONT_FAMILY " Sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
@@ -328,7 +328,7 @@ draw (cairo_t *cr, int width, int height)
/* same text in 'mono' with widths that match the 'sans' version */
old = cairo_font_face_reference (cairo_get_font_face (cr));
cairo_select_font_face (cr,
- "Bitstream Vera Sans Mono",
+ CAIRO_TEST_FONT_FAMILY " Sans Mono",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
substitute = cairo_get_font_face (cr);
@@ -349,7 +349,7 @@ draw (cairo_t *cr, int width, int height)
/* mono text */
cairo_select_font_face (cr,
- "Bitstream Vera Sans Mono",
+ CAIRO_TEST_FONT_FAMILY " Sans Mono",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);