[cairo] show_glyphs and writing text

Behdad Esfahbod behdad at behdad.org
Mon Dec 17 09:20:15 PST 2007


On Mon, 2007-12-17 at 12:17 -0500, Donn wrote:
> 
> > I think a good set of demos would then show that pango integrates
> > nicely with cairo, and it's really not that much harder to use than
> > cairo_show_text.
> Info is thin on the ground, there's a dearth of (accessible) examples
> online.

Start here:

http://svn.gnome.org/viewvc/pango/trunk/examples/cairosimple.c?view=markup

Fancier stuff:

http://svn.gnome.org/viewvc/pango/trunk/examples/cairoshape.c?view=markup
http://svn.gnome.org/viewvc/pango/trunk/examples/cairotwisted.c?view=markup

All are under examples/ in pango tarball.

There's a pangocairo tutorial in the works:

  http://bugzilla.gnome.org/show_bug.cgi?id=502222

-- 
behdad
http://behdad.org/

...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning.  -- Matt Welsh



More information about the cairo mailing list