RE: gtk2 win32 and default font

Jiri Pavlovsky wrote on Thu, 26 Jun 2003:
> I'm using gtk+-2.2.1 on win32. I need to change default font.

After gtk_init() has been called, I do the following to change the font:

    gtk_rc_parse_string("gtk-font-name=\"sans 9\"      \n");

I hope this helps.

Ken Rastatter, Senior Design Engineer
Honeywell Sensotec
2080 Arlingate Lane, Columbus, Ohio, 43228-4112 USA
Home Page:
"These opinions are mine and not necessarily those of Honeywell."

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