Setting fonts in widgets
- From: Robert Roebling <roebling ruf uni-freiburg de>
- To: gtk-list redhat com
- Subject: Setting fonts in widgets
- Date: Thu, 11 Dec 1997 21:44:42 +0100
Good day,
is it possible, to set fonts in widgets? I saw, that there is the
GtkStyle structure, which contains an entry "font". I also
saw, that there is a function gtk_widget_set_style (or
something similar). But I don't want to change all the
style params, but only the font.
I tried to set
widget->style->font = myFont;
which resultet in a segv.
When looking at the ...set_style() code, I saw, that the
old style will get destroyed there, so it seems, that I
will have to set all style params at the same time in
order to set the font, am I right?
Thank you and regards,
Robert Roebling
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]