
cairo_select_font (cr, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); cairo_scale_font (cr, 0.35); cairo_move_to (cr, 0.04, 0.53); cairo_show_text (cr, "Hello"); cairo_move_to (cr, 0.27, 0.65); cairo_text_path (cr, "void"); cairo_save (cr); cairo_set_rgb_color (cr, 0.5,0.5,1); cairo_fill (cr); cairo_restore (cr); cairo_set_line_width (cr, 0.01); cairo_stroke (cr); /* draw helping lines */ cairo_set_rgb_color (cr, 1,0.2,0.2); cairo_set_alpha (cr, 0.6); cairo_arc (cr, 0.04, 0.53, 0.02, 0, 2*M_PI); cairo_arc (cr, 0.27, 0.65, 0.02, 0, 2*M_PI); cairo_fill (cr);