gtk2.0 win32 and default font



Hi,

I'm using gtk+-2.2.1 on win32. I need to change default font.
I tried 2 approaches)see below) I found in mailing list archive, but 
none of them worked (no error message, but the font didn't change).

Regards,
Jiri

1)
  GtkSettings *settings;

  settings = gtk_settings_get_default();
  g_object_set(G_OBJECT(settings), "gtk-font-name", "Sans 9",  NULL);

2)
PangoFontDescription *pdf;
    pdf = pango_font_description_from_string("Sans 9");
gtk_widget_modify_font(GTK_WIDGET(clist), pdf);

-- 
Jiri Pavlovsky
jpavlovsky mbox dkm cz
tel: (+420) 737196433




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