gnome cavas text question



Hi,
  How can I render a text (using canvas_text) of size (in pixels) X ?

  I've no problems using libgnomecanvas v1, but in libgnomecanvas 2,
  the meaning of "font" changed.

  I tried setting "size", but I dind't see anything.

  eg:
       
	item = gnome_canvas_item_new(
		gnome_canvas_root(GNOME_CANVAS(canvas)),
		gnome_canvas_text_get_type(),
		"text",bigtitle,
		"x", (double) 150,
		"y", (double) 10,
		"x_offset", (double) -1,
		"y_offset", (double) -1,
		"font", "Helvetica",
		"size",120,
		"fill_color", "white",
		"anchor",GTK_ANCHOR_NORTH,
		NULL);

  
  I know that I can specify in font "Helvetica 20", and I be a font of
20 points, but I want a font of XX pixels.

Thanks,
riq.
 

-- 
Ricardo Quesada <riq velocom com ar>




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