Re: Font size
- From: Chris Hoefler <hoeflerb brandeis edu>
- To: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Font size
- Date: Thu, 15 Apr 2004 10:03:49 -0400 (EDT)
label=gtk_label_new(NULL);
gtk_label_set_markup (GTK_LABEL(label), "<span
size='large'>title</span>");
see,
http://developer.gnome.org/doc/API/2.0/gtk/GtkLabel.html
-Chris
On Sat, 10 Apr 2004, Russell Shaw wrote:
Hi,
This code won't change the size of a gtk_label text:
PangoAttrList *attr_list;
PangoAttribute *attr;
label=gtk_label_new("title");
attr_list=pango_attr_list_new();
attr=pango_attr_size_new(20000);
pango_attr_list_insert(attr_list,attr);
gtk_label_set_attributes(GTK_LABEL(label),attr_list);
What now?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]