[MonoDevelop] Font size change in monodevelop

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Apr 1 19:40:54 EDT 2010

On Thu, Apr 1, 2010 at 7:00 PM, Robert Trent <rttrent at hiwaay.net> wrote:
> In the MD gui I have defined a label with use_markup = true to enlarge
> its text.  It works!  Now, at run-time, I can change the text but the
> markup has no effect.  I understand that gtk-label has pango, markup
> capability but it is not recognized in my code nor do I find it as a
> label property or method.  lblClientDetailTime.Text = "<big>Now is the
> time</big>"; prints exactly as shown.  Various versions of ~set_markup
> report the label as unknown in this context.  Can someone suggest how I
> might cause the text to enlarge?  My reading on pango has been unfruitful.

Use the label.Markup property.

(Generally get_* and set_* map to properties).

You could also use ModifyFont with a cloned FontDescription with an
altered scale.

Michael Hutchinson

More information about the Monodevelop-list mailing list