[Gtk-sharp-list] Changing fonts in Gtk.TextViews + general documentation question

Peter Johanson latexer at gentoo.org
Wed Jun 22 11:48:41 EDT 2005

On Wed, Jun 22, 2005 at 05:43:32PM +0200, Jacek Blech wrote:
> Hi,
> I am quite new to Linux development and I am trying to learn C# with
> Mono (and simultaniously with .NET under Windows).
> In my first example application I wanted to change the font of a
> Gtk.TextView widget. I found a c-listing where it is done like this:
> >>>
> Gtk::TextView *view = new Gtk::TextView;
> Pointer<Pango::FontDescription> font_desc = 
> 	new Pango::FontDescription("Serif 15");
> view->modify_font(*font_desc);
> <<<

ModifyFont is a method that Gtk.TextView inherits from Gtk.Widget. See
the monodoc documentation for Gtk.Widget for details of the
Widget.ModifyFont method.


Peter Johanson
<latexer at gentoo.org>

More information about the Gtk-sharp-list mailing list