Re: Set the font in a GtkTextView

From: Date: Thu, 31 Aug 2006 12:11:43 +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-7156@lists.php.net to get a copy of this message
Anant Narayanan wrote:
Gell6, You need to use GtkWidget's modify_font() method to achieve this. This method accepts a PangoFontDescription as a parameter.
Alternatively you can use a GtkTextTag to modify the font (or any other display property such as color, size, etc.) across a region of text. Once you have a tag object you can set the font using set_property() $tag->set_property('font', 'yourFontValue'); Take a look at the Gtk doc's Text Widget Overview for more details: http://developer.gnome.org/doc/API/2.0/gtk/TextWidget.html -- Scott Mattocks Author of: Pro PHP-GTK http://www.crisscott.com

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