Re: Using Fonts
| From: | epplestun | Date: | Tue, 12 Aug 2003 16:19:01 +0000 |
| Subject: | Re: Using Fonts | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3694@lists.php.net to get a copy of this message | ||
You can do something like:
$this->gui['ventana']->style = 'style "ventana" {
bg[PRELIGHT] = {0.831, 0.816, 0.784}
bg[NORMAL] = {0.831, 0.816, 0.784}
bg[ACTIVE] = {0.831, 0.816, 0.784}
font = "-adobe-verdana-medium-r-normal--*-103-*-*-*-*-*-*"
}
widget "*GtkWindow*" style "ventana"';
gtk::rc_parse_string($this->gui['ventana']->style);
Here you put the verdana for your application
$this->gui['ventana'] is a GtkWindow
regards :-D
----- Original Message -----
From: "Tony Leake" <tleake@ebuyer.com>
To: "php-gtk" <php-gtk-general@lists.php.net>
Sent: Tuesday, August 12, 2003 5:11 PM
Subject: [PHP-GTK] Using Fonts
> Hi,
>
> can someone point me to an example of how to use fonts, again I'm kinda
> stumped by the manual.
>
> All I really want to do is to change the font size/weight in a label to
> add a title to a screen. I do need it to work under Linux and Windows
> though.
>
> TIA
> tony
>
> --
>
> There are two ways to write error-free programs; only the third one
> works.
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>