Re: Find the font of a Widget



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





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