Re: gtkrc-2.0 and font* =



Marcin Krzyzanowski <krzak linux net pl> writes:

> Hi,
> 
> I just install gtk 2.1.2 and hm..
> 
> ex.
> style "defaultfont" {
>         fontset = "-adobe-courier-bold-r-normal--12-180-100-100-M-150"
> }
> class "*" style "defaultfont"
> 
> It doesnt work, only fonts that work it's pango fonts defined in pangox.aliases, or maybe I did somethink wrong
> 
> PS. I have such font.

To set the default font for gtk-2.0, use:

 gtk-font-name = "Courier 15"

In your ~/.gtkrc. To control fonts for individual widgets do:


 style "myfont" {
         font_name = "Courier 15"
 }
 widget "*.MyWidget.*" style "myfont"

(Note that you can use partial specifications like "15" "Courier" 
"bold", etc here.)

Regards,
                                        Owen



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