Re: Setting Font Faces and Sizes



muppet <scott asofyet org> writes:

That doesn't help you for entries, but why are you wanting to change  
the font in an entry?

I just tried to change the font for an entry widget. For some reason I
want to change the weight.

$weight = $gladexml->get_widget('entry1')->get_style->font_desc->get_weight;

print Dumper($weight);

$gladexml->get_widget('entry1')->get_style->font_desc->set_weight('bold');

$weight = $gladexml->get_widget('entry1')->get_style->font_desc->get_weight;

print Dumper($weight);

But it always prints 'normal'. What do I neglect?

-- 
Radek




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]