<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I am new to Cairo and read the documentation on the website.</div><div><font face="times new roman, new york, times, serif" size="3">Just trying out </font><font face="times new roman, new york, times, serif">some</font><font face="times new roman, new york, times, serif" size="3"> examples.</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I can render lines, rectangles, basically shapes but not text.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="background-color: transparent; "><font face="times new roman, new york,
 times, serif">I am using following code:</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif">Please let me know, what I am doing wrong.</font></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; "><font face="times new roman, new york, times, serif"><code></font></div><div style="background-color: transparent; "><font face="times new roman, new york, times, serif"><div style="background-color: transparent; ">cairo_select_font_face
 (cr, "monospace", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAl);</div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; ">    cairo_set_font_size (cr, 14);</div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; ">    cairo_set_source_rgb (cr, 0, 0, 0);</div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; ">    cairo_move_to (cr, 0, 50);</div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; ">    cairo_show_text (cr, "Print Something");</div><div style="background-color: transparent; "></code></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">TIA,</div><div style="background-color: transparent;
 color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">tt</div></font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><br></div></div></body></html>