From 9aa1f4d868c7fdad6412205538697899fe760dca Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 23 Aug 2005 10:39:27 +0000 Subject: [PATCH] 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. --- ChangeLog | 9 +++++++++ test/Makefile.am | 1 + test/text-antialias-subpixel-ref.png | Bin 0 -> 970 bytes test/text-antialias-subpixel.c | 5 ++++- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/text-antialias-subpixel-ref.png 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 0000000000000000000000000000000000000000..b0f3b78b81ad20556caaf829606c48546a595d41 GIT binary patch literal 970 zcmV;*12z1KP)ClYdOqWgN#}oX5ez?%05H zqE;LgzgGPLV}&9WtmqFVz!lb7mN97-XrsBc{&CGsQ?^0{qgXSI&A+6!bZaBYSnyAE z)~J?jzyT@5Ek(`)j=OvJ2g-ST&vvx7{^-3u+w(l1=Xu^g_IYUBdrHd@T=1x&sok(2 z3j%YaiuPtSki6y<;{&rpN=o1QkI4NqKPcLp(O?D`=xU|o{3VbANupzTX_| zsN2TK(Wj|DH)c5W%feb}cf3kX$!h8fE0_t2;Jll%oF|ycdYtC_LrTqQGsHeU*r$(=A5n92vz}X>q>hOj8t34-F-jEmF@lx()yIfwsBx(3ewVX9yMmQh;szQ17eUhZ0e@Ywe2|7GBqv_%O zvS+@g`B0>rTMaks>C;nL*=qfE;?50cu|2}UswxsPtX$~zaMJZCaCu3bqi7%Y7oX*s z?Pbhg{(}OW1ps^I+qBkfA*bj`O7hdVGM+;B`45)vC8ibgx$88wMaB5qzTwUC^+xB7 zdnJYDH9G9pY;aLga6xKl3M&i+y&4$`*CU)>pVZLsxFLa95SP40@?MD)6r2P5U2tQ{ zDE8lk31FZL_B24tY2$&wEWCF-y!Lztode;u{~ENs1C4LMr#&lVUuBWD9*};#DDBxG z?K~?5W~HR`#b|s}Qc7kxs)6^Vk`s&bz?@XNRyx`x{q((5_mFh>*VtpnV$*H^TuRM} zo&5K&rHoBdfB)h*_lb1>3$c@%%~o#v=MeBMizY5|sZebiaQE&Mh`LSOp0gaG@7Yx+2BJC&PhK z$S;Qnt&p-VT(djjqgu!>gyILl;|Aw`XxkK<@i<9BFy;ow-H>RCe$X=xCI_S@7;C{f s7@L5!bzqB+jW|sHAK?x@{|DrM0V9?Xrcr&B)c^nh07*qoM6N<$f|$kNApigX literal 0 HcmV?d00001 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."); }