On 3/7/07, Marc Santhoff <[EMAIL PROTECTED]> wrote:
Am Mittwoch, den 07.03.2007, 12:39 +0200 schrieb Adrian Maier:
> Hello,
>
> I am compiling Lazarus with the gtk1 interface (in Mandriva Linux 2007),
> and unfortunately can't find any font for the code editor that looks
> acceptable.
>
> a) I'm wondering what fonts are other people using?
-misc-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
Thanks Marc. This font is ok.
Size 15
with screen size 1600x1200 looks good for me. Somewhat similar to the
old "BorTE"-font, maybe some people remember it from BPW/TPW on early
Windows versions ...
> c) Also, when running my application (built with lazarus) it also uses a
> very ugly (hard-to-read) font. In order to change it is it true that it can
> be configured with the ~/.gtkrc file?
> Does anyone happen to know some links with clear information about
> setting fonts for gtk1 applications?
Ask your favourite search engine for "GTK theming". There are tutorials
on that topic, too.
Short:
You can assign attributes (including colour, font, ...) to classes of or
single widgets in the .gtkrc file.
Example:
<snip>
style "h1"
{
font = "-*-helvetica-bold-r-*-*-17-*-*-*-*-*-*-*"
}
style "h2"
{
font = "-*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*"
}
style "label-14"
{
font = "-*-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*"
}
widget_class "*GtkFrame*" style "h1"
widget_class "*GtkLabel*" style "label-14"
</snip>
In your application you've got to:
<snip>
gtk_init (@argc, @argv);
gtk_rc_parse( <your_preferred_rc_file> )
... other inits ..
gtk_main ();
</snip>
I see.
Thanks,
Adrian Maier
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives