zauberertz
zauberertz

Reputation: 13

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"

Upvotes: 1

Views: 3863

Answers (2)

Nail
Nail

Reputation: 476

Instead of button1.ModifyFont, button1.Child.ModifyFont worked in my case.

Upvotes: 0

Jester
Jester

Reputation: 58822

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

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

Upvotes: 2

Related Questions