Re: set a font style for all text widget



On Wed, 22 Aug 2001, Vlad Harchev wrote:

 Forgot to add:

 To get a guaranteed result (that will work for non-latin1), substitute 
"font=" with "fontset=" in that string. That will work in 100% of cases.

> 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.

 Best regards,
  -Vlad





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