diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-05-15 20:09:17 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-05-15 20:09:17 -0400 |
commit | 168447cc2b53e446bf8e67e2f457c54256bcbada (patch) | |
tree | 032ec6520eb2406dd081c8a4e497285e6af68181 /test/user-font.c | |
parent | 556b16d6a20f11627c75c1365dea5a6332091779 (diff) |
[user-font] Use opaque colors such that PS backend gets tested
Also update ref images. All backends pass now.
Diffstat (limited to 'test/user-font.c')
-rw-r--r-- | test/user-font.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/user-font.c b/test/user-font.c index b6acba8a..81871a5a 100644 --- a/test/user-font.c +++ b/test/user-font.c @@ -205,7 +205,7 @@ draw (cairo_t *cr, int width, int height) cairo_rel_line_to (cr, 0, 2*BORDER + TEXT_SIZE); cairo_move_to (cr, BORDER + extents.x_advance, 0); cairo_rel_line_to (cr, 0, 2*BORDER + TEXT_SIZE); - cairo_set_source_rgba (cr, 1, 0, 0, .8); + cairo_set_source_rgb (cr, 1, 0, 0); cairo_set_line_width (cr, 2); cairo_stroke (cr); @@ -213,18 +213,18 @@ draw (cairo_t *cr, int width, int height) cairo_rectangle (cr, BORDER + extents.x_bearing, BORDER + font_extents.ascent + extents.y_bearing, extents.width, extents.height); - cairo_set_source_rgba (cr, 0, 1, 0, .8); + cairo_set_source_rgb (cr, 0, 1, 0); cairo_set_line_width (cr, 2); cairo_stroke (cr); /* text in gray */ - cairo_set_source_rgba (cr, 0, 0, 0, 0.5); + cairo_set_source_rgb (cr, 0, 0, 0); cairo_move_to (cr, BORDER, BORDER + font_extents.ascent); cairo_show_text (cr, text); /* filled version of text in light blue */ - cairo_set_source_rgba (cr, 0, 0, 1, 0.5); + cairo_set_source_rgb (cr, 0, 0, 1); cairo_move_to (cr, BORDER, BORDER + font_extents.height + 2*BORDER + font_extents.ascent); cairo_text_path (cr, text); cairo_fill (cr); |