Re: fixed width font labels



So should I use something like :


  gtk_rc_parse_string("style \"fixed\" {font_name=\"Sans Italic 10\"} class 
\"GtkLabel\" style \"fixed\"");
  mylabel=gtk_label_new("Some Text");
..



(Ok - thats not fixed - but its easier to see italics for testing)..



On Thursday 08 January 2004 3:48 pm, Tristan Van Berkom wrote:
Mike Aubury wrote:
What the easiest/best way to get labels that use fixed width fonts ?

(If possible in both 1.2 and 2.0)

Simply assign the fontset of your choosing to the label (fixed or not):

http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html


Cheers,
               -Tristan

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




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