[Gtk-sharp-list] 'Pango Size' does not work

Miguel 26031@t-link.de
Sat, 19 Jun 2004 23:29:08 +0200


I try to scale the font size of a label.
The following code should do that job:

Pango.FontDescription fd;
fd = new Pango.FontDescription ();
fd.Size = Pango.Scale.Large;
label.ModifyFont (fd);
label.Layout.FontDescription = fd;
label.Show ();

But it won't work.

A bold label works great with:
fd.Weight = Pango.Weight.Bold;
instead of fd.Size = Pango.Scale.Large;

Any hints?