Re: set a font style for all text widget



On Wed, 22 Aug 2001, Tamara wrote:

 Hi Tamara!

 You should call

gtk_rc_parse_string("style \"user-font\"\n
{  font=\"-cronyx-helvetica-bold-r-normal-*-*-100-*-*-p-*-koi8-r\" } \n
widget_class \"*\" style \"user-font\"");

Insert the XLFD of the font you need of course. After that you should let gtk
redraw widgets, something like
	while (gtk_events_pending())
		gtk_main_iteration();
or something similar (typing from memory).

> Hi!
> my name is Tamara, I'm new with gtk and I've a problem...
> It is possible to set a only one font style for all the text widget?
> I know how to change font for a single widget but I like to use only one
> "function" for all.
> 
> Thank you and bye
> Tamara

 Best regards,
  -Vlad





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