Clear to opaque white at the beginning of the test so that the 0 alpha values in the destination don't cause bizarre results. (main): Note that only the image backend should fail now.

Add new reference image.
This commit is contained in:
Carl Worth 2005-08-23 10:39:27 +00:00
parent 9e68e0ceef
commit 9aa1f4d868
4 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2005-08-23 Carl Worth <cworth@cworth.org>
* test/text-antialias-subpixel.c (draw): Clear to opaque white at
the beginning of the test so that the 0 alpha values in the
destination don't cause bizarre results.
(main): Note that only the image backend should fail now.
* test/text-antialias-subpixel-ref.png: Add new reference image.
2005-08-23 Carl Worth <cworth@cworth.org>
* test/text-rotate-ref.png:

View file

@ -114,6 +114,7 @@ source-surface-scale-paint-ref.png \
surface-pattern-ref.png \
text-antialias-gray-ref.png \
text-antialias-none-ref.png \
text-antialias-subpixel-ref.png \
text-pattern-ref.png \
transforms-ref.png \
translate-show-surface-ref.png \

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

View file

@ -42,6 +42,9 @@ draw (cairo_t *cr, int width, int height)
cairo_font_options_t *font_options;
static char black[] = "black", blue[] = "blue";
cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
cairo_paint (cr);
cairo_select_font_face (cr, "Bitstream Vera Sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
@ -78,5 +81,5 @@ int
main (void)
{
return cairo_test_expect_failure (&test, draw,
"Bugs in subpixel-antialiased text rendering");
"Subpixel-antialiased text is not working with the image backend.");
}