[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: resource files
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: gtk-app-devel-list gnome org
- Subject: Re: resource files
- Date: Fri, 5 Mar 2004 23:17:27 +0200
Tristan Van Berkom wrote:
> 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.
Maybe you misunderstood me. I can of course put an arbitrary size,
like 16 or whatever. But what if user's main font size is 14? For
him my header will look completely different than for a user with
standard base font size of 10.
I'll rephrase: can i achieve the same functionality with RC files
as with '<span size="larger">...</span>' Pango markup?
Paul
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]