PangoCairo arbitrary shape rendering
On Tuesday I met Travis Griggs, the author of
cairo Smalltalk bindings, who was
presenting about cairo at
IT360°. He made his slide deck using cairo and Pango, using a background and font that resembled Egyptian papyrus scroll using the
cairo beetle logo instead of bullet points. I asked him how he did that and of course the hard way. I then explained how pango supports
shape attributes that can be used by a custom made
PangoRenderer to render arbitrary shapes.
Last night I thought there should be an easier way to do that, and so I added
pango_cairo_context_set_shape_renderer().
Obligatory screenshot:

Source code.
Lets see how long I can go with a Pango feature a day. Today excluded as I'll be driving to LGM. Weekends too as I've finally got myself spending the weekend with species other than computers.
Labels: cairo, gnome, pango, pangocairo