Re: Regular fonts --> Italic fonts in widgets



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]