Re: change font size



On Wed, Jan 12, 2005 at 09:38:23AM -0800, Paolo Costabel wrote:
// set default font
font_desc = pango_font_description_from_string("Courier 12");
gtk_widget_modify_font(widget, font_desc);
pango_font_description_free(font_desc);

That's hardly going to work with Gtk+ 1.2.

I suppose one either creates a modified style and uses
gtk_widget_set_style() (but don't ask me for details...).

Or one gives the widget a name, puts a gtkrc-like style
definition for that name to a string and uses
gtk_rc_parse_string().  This should work in both Gtk+
versions, but is useful when you need to create a set of
widgets with different style, not to modify widget styles
dynamically.

Yeti


--
Dynamic IP address is not a crime.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]