# HG changeset patch # User Thinker K.F. Li # Date 1236344692 -28800 # Node ID b0571f10c1b8121d688da17c715f275797100582 # Parent 740844ee48c49011d3ff5b6ce5681d6f8a6ab1a2 Use pango_cairo_layout_path() instead of pango_cairo_show_layout(). - pango_cairo_show_layout() will stroke and fill text. - We want shape itself add pathes to cairo context, but not stroke and fill. - redraw manager will apply paints (source surface) on cairo context before stroke and fill to get right color. - Using pango_cairo_show_layout() we can not apply stroke and fill color seperately. So, pango_cairo_layout_path() is used instead of. diff -r 740844ee48c4 -r b0571f10c1b8 src/shape_text.c --- a/src/shape_text.c Fri Mar 06 20:39:25 2009 +0800 +++ b/src/shape_text.c Fri Mar 06 21:04:52 2009 +0800 @@ -261,7 +261,7 @@ static void draw_text(sh_text_t *text, cairo_t *cr) { sh_text_P_generate_layout(text, cr); cairo_move_to(cr, text->d_x, text->d_y); - pango_cairo_show_layout(cr,text->layout); + pango_cairo_layout_path(cr,text->layout); }