gtk_widget_modify_font not working
- From: Sean Davey <seandavey uswest net>
- To: gtk-app-devel-list gnome org
- Subject: gtk_widget_modify_font not working
- Date: Thu, 18 Jul 2002 16:50:50 -0700
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]