gtk2.0 win32 and default font

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

 



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



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux