[cairo] Problem displaying text

Ralf Stephan ralf at ark.in-berlin.de
Thu Nov 2 07:51:46 PST 2006


> 	ctx.select_font_face("Sans", cairo.FONT_SLANT_NORMAL,
> 	    cairo.FONT_WEIGHT_NORMAL)
> 	ctx.set_font_size(24.0)
> 	ctx.set_source_rgba(1.0, 1.0, 1.0, 1.0)
> 	ctx.move_to(100, 100)
> 	ctx.show_text("Fnord")
> 	ctx.fill()

I'm normally using pangocairo/C++ but maybe your problem is that
you don't have a background painted. Because, what's the use of 
painting black on nothing?


ralf



More information about the cairo mailing list