[MonoDevelop] Font size change in monodevelop

Robert Trent rttrent at hiwaay.net
Fri Apr 2 00:02:31 EDT 2010

Michael Hutchinson wrote:
> 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.
lblClientDetailTime.set_markup("<big>Big label</big>");
returns Gtk.label does not contain a definition for 'set_markup' 
(CS0017) MainWindow.cs  etc.
I'm not quite there yet.  Markup works fine as specified in the widget 
but not in my code.  Any suggestions??

More information about the Monodevelop-list mailing list