gtk_label and changing the font size.



hi all,

I have the folowing piece of code:

  label = gtk_label_new (context->head_title);
  {
    PangoAttrList *attr_list;
    PangoAttribute *attr;
    attr_list = pango_attr_list_new ();
    attr = pango_attr_size_new (40);
    pango_attr_list_insert (attr_list, attr);
    gtk_label_set_attributes (GTK_LABEL(label), attr_list);
  }

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 ?

Mathieu
-- 
Mathieu Lacage <mathieu gnu org>




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