font usage
- From: beach ataman com
- To: gtk <gtk-list redhat com>
- Subject: font usage
- Date: Thu, 6 Aug 1998 14:23:13 -0600
Gtk Developers:
I read the docs/styles.txt file and I've still got some questions on
how to use styles and fonts. Specifically, when is it okay to change
the contents of a GtkStyle? Should I only change the attributes of a
copied style and then re-apply it? What is the right way to change
the font for a particular style? Is this correct?
gtk_font_unref(mystyle->font);
mystyle->font = new_font;
gtk_font_ref(mystyle->font);
Also, is it dangerous (or inefficent) to multiply load the same font?
(Or does Gdk take care of this?)
Thanks.
Dave
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]