Re: Altering a font in textview



On Sun, 2003-01-26 at 09:32, Steve & Patti Getzinger wrote:
This one has ran me in circles for about a week now. Been through just 
about every .h file, books, archive, ...

style->font

structure has no member

checking struct we have a PangoTextDescription

so when I attempt style->font_desc we get past the no member portion but 
get an invalid cast when using gtk_load_font. I have been looking at 
GtkTextTag but for the life of me can not figure out how to designate my 
text as a tag as to apply attribute changes not to mention 
gtk_object_set says invalid cast when I attempt to use tag as the 
object. I am totally lost on this one. How do I change the font of text?

TIA
Steve

gtk-demo is your friend.  Double click on Text Widget when you run it.




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