On Sep 6, 2012, at 7:29 AM, Parth Kanungo <kanungoparth gmail com> wrote:
You write a callback function that matches the signature of PangoCairoShapeRendererFunc [1] and use pango_cairo_context_set_shape_renderer() to set it as the callback on your PangoContext. When the context needs to render a shape, it calls your callback function. This is another standard GObject programming construct. You'll find it much easier to understand Pango -- and most of the other libraries in the Gtk stack -- if you start by studying GObject. Since the documentation is written at a rather high level, you'll find a good grounding in OO programming helpful. Regards, John Ralls |