Re: [gtk-list] font usage
- From: Tim Janik <timj gtk org>
- To: gtk <gtk-list redhat com>
- Subject: Re: [gtk-list] font usage
- Date: Mon, 10 Aug 1998 12:09:19 +0200 (CEST)
On Thu, 6 Aug 1998 beach@ataman.com wrote:
> 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
yep, that's the way to go.
> the font for a particular style? Is this correct?
>
> gtk_font_unref(mystyle->font);
> mystyle->font = new_font;
> gtk_font_ref(mystyle->font);
yep, absolutely fine.
>
> Also, is it dangerous (or inefficent) to multiply load the same font?
> (Or does Gdk take care of this?)
in fact, gdk should take care of this.
>
> Thanks.
>
> Dave
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]