Re: Find the font of a Widget

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

 



GtkStyle* style = gtk_widget_get_style(widget);
PangoFontDescription* font = style->font;

or something like that. i use gtkmm (C++)

note that styles are not necessarily set up until after a widget has
been realized, because they can be affected by the screen the widget is
displayed on.

--p


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

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

  Powered by Linux