# HG changeset patch # User Thinker K.F. Li # Date 1248927087 -28800 # Node ID c02d2aa2c45e7ad45863ac37be490854f88befaa # Parent 2bdd4f5dd2ca8a50e62be59e58f95e36a92b9f14 Fig the bug that sh_stext can not show text with right color. It is caused by sh_stext draw text directly into surface. It should create a path instead of draw directly, since rdman would draw the path with right color, stroke, and opacity. diff -r 2bdd4f5dd2ca -r c02d2aa2c45e src/shape_stext.c --- a/src/shape_stext.c Wed Jul 29 20:22:36 2009 +0800 +++ b/src/shape_stext.c Thu Jul 30 12:11:27 2009 +0800 @@ -314,7 +314,7 @@ cairo_set_scaled_font(cr, (cairo_scaled_font_t *)scaled); cairo_move_to(cr, x, y); - cairo_show_text(cr, buf); + cairo_text_path(cr, buf); cairo_set_scaled_font(cr, saved_scaled); cairo_scaled_font_destroy(saved_scaled);