I am new to cairo and I have read the tutorials/documentation on its website. Now I can make lines, rectangles, and basically I can render images but not text.
I am using the following code
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, 1, 1, 1);
cairo_move_to (cr, 50, 50);
cairo_show_text (cr, "Print Something");
Can anyone please point to my mistake?