Re: Regular fonts --> Italic fonts in widgets
- From: Evan Martin <martine cs washington edu>
- To: ç <drzoidberg wanadoo es>
- Cc: Gtk app devel <gtk-app-devel-list gnome org>
- Subject: Re: Regular fonts --> Italic fonts in widgets
- Date: Mon, 22 Jul 2002 21:53:36 -0700
VÃctor wrote:
I've a GtkLabel widget which displays text, in a default font. I'd like
to change this font (regular font) and display the label's text with an
italic font.
Try:
char *newtext;
newtext = g_strdup_printf("<i>%s</i>", oldtext);
gtk_label_set_markup(GTK_LABEL(label), newtext);
g_free(newtext);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]