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

Richard Torkar richard.torkar@htu.se
Sun, 20 Jun 2004 13:21:46 +0200


On Sun, 2004-06-20 at 00:29 +0200, Miguel wrote:
> 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?

Hmm, unfortunately I can't remember how I did that. I'll try and see if
I can get hold of an example.

Otherwise Mike Kestner should be able to give you a hint or two ;-)


/Richard
--