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
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 wan
Mario Ospelt said:
> 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 d
muppet said:
>
> Mario Ospelt said:
>> 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,