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

Miguel 26031@t-link.de
Sun, 20 Jun 2004 00:29:41 +0200


On Sat, 2004-06-19 at 23:43, Richard Torkar wrote:
> On Sat, 2004-06-19 at 23:29 +0200, Miguel wrote:
> > Hi,
> > 
> > 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;
> 
> Well,
> 
> http://bugzilla.ximian.com/show_bug.cgi?id=49534
> 
> ;-)
> 
> /Richard

Damn, thx.

Any special hints for stretch?

Michael