Gtk.Widget.ModifyFont Method
Sets the font to use for a widget.

Syntax

public void ModifyFont (Pango.FontDescription font_desc)

Parameters

font_desc
The font description to use, or null to undo the effect of previous calls to Widget.ModifyFont.

Remarks

All other style values are left untouched. See also Widget.ModifyStyle.

To change the font of a simple Widget:

C# Example

	using Pango;
	...
	[Widget] Label label1;
	...

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

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)