[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: resource files
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Paul Pogonyshev <pogonyshev gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: resource files
- Date: Fri, 05 Mar 2004 15:48:14 -0500
Paul Pogonyshev wrote:
> Apparently there is no way of specifiying "larger" etc. font sizes
> from RC files. Is this true? I.e. I would prefer to set widgets
> with certain name (say "header") to be rendered in bold and in a
> larger font size from RC file rather than attaching Pango markup
> to any text that can be put into this widget. Is it possible?
Yes.
We use styles that look like this for that purpose:
style "font_style_name"
{
font_name = "Arial 10"
fg[NORMAL] = { 0.000, 0.000, 0.000 }
fg[ACTIVE] = { 0.000, 0.000, 0.000 }
fg[PRELIGHT] = { 0.000, 0.000, 0.000 }
fg[SELECTED] = { 0.000, 0.000, 0.000 }
fg[INSENSITIVE] = { 0.000, 0.000, 0.000 }
}
You can specify the R/G/B of foreground and background of
each state, if not specified; it is transperent (thus why
we always leave the bg unspecified).
The size is implicit in the font name.
Cheers,
-Tristan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]