Re: GtkTextBuffer : Applying tags to newly input text




 
The textview understands Pango markup. Maybe something to give a try. There are a lot of text formats and you 
might have to do some text parsing depending on the format. If it is possible to use 
gtk_text_buffer_insert_markup(), this can save a lot of time dealing with text tags especially if you intend 
to print the text. It is far easier to send a pango markup string to print than to go through all the tags 
and draw them with cairo.

https://developer.gnome.org/pango/stable/PangoMarkupFormat.html

Eric

 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]