diff --git a/ChangeLog b/ChangeLog index 792bb19c2..8ab5a1bcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-08-23 Carl Worth + + * 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 * test/text-rotate-ref.png: diff --git a/test/Makefile.am b/test/Makefile.am index 4c40aa4e9..7ceb63850 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 \ diff --git a/test/text-antialias-subpixel-ref.png b/test/text-antialias-subpixel-ref.png new file mode 100644 index 000000000..b0f3b78b8 Binary files /dev/null and b/test/text-antialias-subpixel-ref.png differ diff --git a/test/text-antialias-subpixel.c b/test/text-antialias-subpixel.c index c72a71285..7c151a5c7 100644 --- a/test/text-antialias-subpixel.c +++ b/test/text-antialias-subpixel.c @@ -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."); }