[cairo] text with outline ?

Behdad Esfahbod behdad at behdad.org
Mon Jan 22 14:10:47 PST 2007


On Mon, 2007-01-22 at 16:55 -0500, Simon Burton wrote:
> 
> Is there a smarter way to draw text with an outline ? 

Yes:

cairo_text_path (cr, text);
cairo_stroke (cr);

Note that you don't need cairo_stroke() after cairo_show_text().
There five cairo operations that draw something:

  cairo_paint()
  cairo_fill()
  cairo_stroke()
  cairo_mask()
  cairo_show_glyphs()/cairo_show_text()

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list