Joined: 21 Jun 2007 Posts: 75 Location: Wilkes Barre Pa
Posted: Tue Mar 11, 2008 3:48 am Post subject:
What you want to do is use pango for this now i am not exactly sure what functions you could use to make this easier but ill give a general idea how you could do this.
Write some c code to open a file then iterate threw the file applying your text style on each character, word, etc until you receive a EOF signal then send the text with your text style applied to your textwidget.
Or while the file is loaded in a textview you could select a character, word or words with your mouse have a button that would apply a style.