[cairo] can't render text

Techie Help techieinfo at yahoo.co.uk
Wed Oct 31 09:17:11 PDT 2012

I am new to Cairo and read the documentation on the website.
Just trying out some examples.
I can render lines, rectangles, basically shapes but not text.

I am using following code:

Please let me know, what I am doing wrong.
cairo_select_font_face (cr, "monospace", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAl);

    cairo_set_font_size (cr, 14);

    cairo_set_source_rgb (cr, 0, 0, 0);

    cairo_move_to (cr, 0, 50);

    cairo_show_text (cr, "Print Something");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121031/1f2fd4e5/attachment.html>

More information about the cairo mailing list