Hello James, thanks a lot for your answer.
Hopes there is something with pango or clutter without cairo, but I will use cairo as you advice me. Rno On Mon, Sep 8, 2008 at 7:02 PM, James Ketrenos <[EMAIL PROTECTED]> wrote: > Arnaud VALLAT wrote: >> >> Hello, >> >> I didn't find anything about rendering text outline with neither >> clutter nor pango. Is it possible to do it? Maybe it's my vocabulary >> which is wrong and it's not called outline but something else? >> > > Until someone tells you how to do it with direct clutter or pango calls, you > can use clutter-cairo to create a text based path and then stroke the path > -- pseudo-ish code: > > ClutterActor *actor = clutter_cairo_new(100, 20); > cairo_t *cr = clutter_cairo_create(CLUTTER_CAIRO(actor)); > cairo_select_font_face(cr, "Arial", CAIRO_FONT_SLANT__NORMAL, > CAIRO_FONT_WEIGHT_NORMAL); > cairo_set_font_size(cr, 14.0); > cairo_set_line_width(cr, 2.0); > cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 1.0); > cairo_text_path(cr, "Flubox!"); > cairo_stroke(cr); > cairo_destroy(cr); > > I'll frequently render with a width of 3.0 and a black color (using > cairo_stroke_preserve) and then change the color to white, width to 1.0 and > then cairo_stroke again. > > James > >> Thanks, >> >> Rno >> > > -- "Given enough eyeballs, all bugs are shallow" Eric Steven Raymond -- To unsubscribe send a mail to [EMAIL PROTECTED]
