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


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 yahoo com
engenharia3 maqplas com br

gtk-list mailing list
gtk-list gnome org

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