[cairo-commit] goocanvas/src goocanvas.c, 1.9, 1.10 goocanvasitemsimple.c, 1.23, 1.24

Damon Chaplin commit at pdx.freedesktop.org
Sun Feb 25 09:57:44 PST 2007


Committed by: damon

Update of /cvs/cairo/goocanvas/src
In directory kemper:/tmp/cvs-serv4789/src

Modified Files:
	goocanvas.c goocanvasitemsimple.c 
Log Message:
2007-02-25  Damon Chaplin  <damon at gnome.org>

	* src/goocanvasitemsimple.c: 
	* src/goocanvas.c (goo_canvas_create_cairo): use CAIRO_ANTIALIAS_GRAY
	as the default antialiasing mode, as that is what is recommended when
	using unhinted text. (subpixel antialiasing looks really bad.)



Index: goocanvas.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvas.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- goocanvas.c	25 Feb 2007 17:37:57 -0000	1.9
+++ goocanvas.c	25 Feb 2007 17:57:38 -0000	1.10
@@ -522,7 +522,9 @@
 
   cr = gdk_cairo_create (canvas->canvas_window);
 
-  /*cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);*/
+  /* We use CAIRO_ANTIALIAS_GRAY as the default antialiasing mode, as that is
+     what is recommended when using unhinted text. */
+  cairo_set_antialias (cr, CAIRO_ANTIALIAS_GRAY);
 
   /* Set the default line width based on the current units setting. */
   cairo_set_line_width (cr, goo_canvas_get_default_line_width (canvas));

Index: goocanvasitemsimple.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvasitemsimple.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- goocanvasitemsimple.c	25 Feb 2007 17:37:57 -0000	1.23
+++ goocanvasitemsimple.c	25 Feb 2007 17:57:38 -0000	1.24
@@ -139,7 +139,7 @@
 						      _("Antialias"),
 						      _("The antialiasing mode to use"),
 						      GOO_TYPE_CAIRO_ANTIALIAS,
-						      CAIRO_ANTIALIAS_DEFAULT,
+						      CAIRO_ANTIALIAS_GRAY,
 						      G_PARAM_READWRITE));
 
   /* Line style & width properties. */
@@ -434,7 +434,7 @@
       break;
     case PROP_ANTIALIAS:
       svalue = goo_canvas_style_get_property (style, goo_canvas_style_antialias_id);
-      g_value_set_enum (value, svalue ? svalue->data[0].v_long : CAIRO_ANTIALIAS_DEFAULT);
+      g_value_set_enum (value, svalue ? svalue->data[0].v_long : CAIRO_ANTIALIAS_GRAY);
       break;
 
       /* Line style & width properties. */



More information about the cairo-commit mailing list