gtk_widget_modify_font not working



hi,

I'm trying to do something like:

PangoFontDescription* p = pango_font_description_from_string("Sans 9");
gtk_widget_modify_font(GTK_WIDGET(next_button), p);

I've tried many combinations of font names (Helvetica, Times, etc.) and have printed out the results of pango_context_list_families and they all seem to be there. p is valid but the widgets are all in a serif font of large size no matter what I do. I've tried to change the font of buttons, notebooks, menus and menubars without success.

Any suggestions? Is there some place I can track down an error message?

On a related note, is there a way to set the default font for all widgets?

I'm running debian. I have a previous version of my app that uses gtk+1.2 which works using the old gdk font stuff.

thanks in advance,
  sean




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