Re: Label Attributes
- From: Raf D'Halleweyn <list noduck net>
- To: Mario Ospelt <mospelt student ethz ch>
- Cc: gtk-perl-list gnome org
- Subject: Re: Label Attributes
- Date: Thu, 01 Dec 2005 12:55:51 -0500
Mario,
Does this help?
my $label = Gtk2::Label->new();
my $layout = $label->create_pango_layout('some text');
my $fd = Gtk2::Pango::FontDescription->from_string('Sans Bold 10');
$layout->set_font_description($fd);
Raf.
On Thu, 2005-12-01 at 18:09 +0100, Mario Ospelt wrote:
Hello,
I want to change the fontweight and fontsize of a Gtk2::Label. I saw in
the reference manual that I have to use a Gtk2::Pango::AttrList. But the
method new() is not available. How can I do that although? (I had also a
look at Gtk2::Text, but that seems to be deprecated.)
Thanks
Mario
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]