[Glade-users] Canvas questions



George wrote:

3. I cannot get the text to show up at all. I cannot find an example
anywhere that uses text.

I think you need to set the font before any text will show up, e.g.
by using args like these:

  "font", "-adobe-helvetica-medium-r-normal--12-*-72-72-p-*-iso8859-1",

(but this isn't good for i18n)

or

  "font_gdk", GTK_WIDGET (canvas)->style->font,

(but you have to be careful here to be sure that the style is set first)


There is some example canvas code in gnome-libs/test-gnome

Damon







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