Hello there, I'm browsing the documentation of Pango and Gtk for some time now and I didn't find a clear "connexion" between a Gtk.TextBuffer and a Pango.Layout.
So, the question is : Is there a way that a can populate a Gtk.TextBuffer with a string formated with markup's as the Pango.Layout.SetMarkup(string) does. For now, I plan to subclass a Gtk.TextBuffer (or a Gtk.TextView) and add a "void SetMarkup(string)" method that will parse the string and use a bunch of TextTag to do the text formating internally. I also plan to add a "string GetMarkup()" method witch will produce a string with markup's from the content of the Gtk.TextBufer. Is this a good way to go or there is already a simpler way to do what I want ? In fact, my goal is to create a simple wysiwyg text editor and render the text produced on a Pango.Layout and then, on a Cairo.Surface. Any thought ? David _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
