Re: Set the font in a GtkTextView

From: Date: Thu, 31 Aug 2006 13:58:44 +0000
Subject: Re: Set the font in a GtkTextView
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7157@lists.php.net to get a copy of this message
ok thanks. Just for the benefit of other readers, here's some example code: $font = new PangoFontDescription ('Sans Arial 12'); $textview1 -> modify_font($font); And if you're using a GtkFontSelectionDialog which lets the user select a font, the code would like this: $fontSelectionDialog1 -> get_font_name(); $textview1 -> modify_font($font); -- View this message in context: http://www.nabble.com/Set-the-font-in-a-GtkTextView-tf2196127.html#a6079920 Sent from the Php - GTK - General forum at Nabble.com.

« previous php.gtk.general (#7157) next »