Search code examples
monomonodevelopgtk#

Set Font on GTK# Widget


I Would like to change the style of a button or menu entry by changing the font type. How con this be done cause there is no porperty on the GTK# widget for this like "Gtk.Button.Font"


Solution

  • Use the ModifyFont method. As per the example on the linked page:

    button1.ModifyFont(FontDescription.FromString("Courier 16"));