Re: gtk_label and changing the font size.



Mathieu Lacage <mathieu gnu org> writes: 
> And I wonder why it does not work. I expected the above to change the
> size of the label displayed to something much bigger than default
> (ideally, pango would have picked up a font with the closest size).
> 
> I have also tried to call pango_attr_scale_new (10); but this did not
> change anything. 
> 
> Any idea ?

You didn't set attr_list->start_index, attr_list->end_index.

The easier way to do this is:
 gtk_label_set_markup (label, "<big>foo</big>");

Havoc



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