[cairo-commit] cairo/test Makefile.am, 1.87, 1.88 text-antialias-subpixel-ref.png, NONE, 1.1 text-antialias-subpixel.c, 1.1, 1.2

Carl Worth commit at pdx.freedesktop.org
Tue Aug 23 10:39:29 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv546/test

Modified Files:
	Makefile.am text-antialias-subpixel.c 
Added Files:
	text-antialias-subpixel-ref.png 
Log Message:

2005-08-23  Carl Worth  <cworth at 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.


Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/test/Makefile.am,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- Makefile.am	23 Aug 2005 14:51:56 -0000	1.87
+++ Makefile.am	23 Aug 2005 17:39:27 -0000	1.88
@@ -114,6 +114,7 @@
 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		\

--- NEW FILE: text-antialias-subpixel-ref.png ---
(This appears to be a binary file; contents omitted.)

Index: text-antialias-subpixel.c
===================================================================
RCS file: /cvs/cairo/cairo/test/text-antialias-subpixel.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- text-antialias-subpixel.c	27 Jul 2005 20:28:15 -0000	1.1
+++ text-antialias-subpixel.c	23 Aug 2005 17:39:27 -0000	1.2
@@ -42,6 +42,9 @@
     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 @@
 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.");
 }



More information about the cairo-commit mailing list