RE: fonts in GTK+



Title: RE: fonts in GTK+

I think (please somebody correct me if I'm wrong) that you can do something like this:

GtkWidget *label;
...
label->style->font = gdk_font_load("XLFD font name");
...
I'm unsure about what to do with the old font before loading, maybe a

gdk_font_unref(label->style->font);

and about where is the correct place for doing these kind of things.

For buttons or other widgets try obtaining their contained labels.

Esteban Quijano Vincenzi
Artinsoft corp.
Quality Assurance
e-mail: equijano artinsoft com <equijano artinsoft com >

-----Original Message-----
From: Flavio Alberto Lopes Soares [mailto:engenharia3 maqplas com br]
Sent: Tuesday, July 10, 2001 3:24 PM
To: gtk-list gnome org
Subject: fonts in GTK+


I'm a beginer aplication developer in GTK+ and I want to know how to
change the fonts of labels in objects in GTK+ (ex: gtk_button... &
gtk_label..., ...);

I thanks for any help

flaviothunder

flaviothunder yahoo com
engenharia3 maqplas com br



_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



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