Pango Help in GTK+

This is a discussion on Pango Help in GTK+ within the Linux Programming forums, part of the Platform Specific Boards category; Hi,
I have a GtkTextBuffer which holds the text that is displayed in a GtkTextView. I would like to highlight ...

Pango Help in GTK+

Hi,

I have a GtkTextBuffer which holds the text that is displayed in a GtkTextView. I would like to highlight certain words in it--make some words bold, put others in italics, etc.

I know that Pango is what handles all this stuff, but I cannot find a single tutorial online that explains the use of Pango in an understandable format. Even the technical documentation provided in DevHelp is not of much use. I have read that quite thoroughly too, but without any specific examples relating Pango to GtkTextBuffer and GtkTextView, it is a little hard to figure out what to do.

Does anyone here have a good tutorial that explains how Pango is used with GtkTextBuffer?