<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">I am using GTK3.0 and the Cairo that came with Ubuntu 12.04.<br><br>I am only just beginning with Cairo and have gone through the introductory tutorials and written some very tiny fragments to experiment and learn including the following for text:<br><br>   cairo_select_font_face(cr, "Arial", CAIRO_FONT_SLANT_NORMAL,<br>                          CAIRO_FONT_WEIGHT_NORMAL);<br>   cairo_set_font_size(cr, 12);   // <<<<< assume this is in pts<br>   cairo_set_source_rgb(cr, 0, 0, 0);<br>   const char * str = "This is text" ;<br>   cairo_font_extents_t fexts;<br>   cairo_font_extents ( cr, &fexts ) ;<br>  
 cairo_move_to(cr, 0,fexts.ascent);<br>   cairo_show_text(cr, str );<br><br>The text came out looking smaller than I had expected so I checked using Firefox, Chromium and Opera with the following tiny html file:<br><br><style><br>.some_class {<br>    padding: 0px;<br>    border: 2px solid green;<br>    }<br></style><br><body><br><p class="some_class" style="font-family:Arial;font-size:12pt;">This is text</p><br></body><br><br>The three browsers showed the text in exactly the same way. The height of the capital letter T was 12 pixels for the browsers and only 8 pixels for the Cairo output.<br><br>Why is this?<br><br>Ken<br>P.S. I was using screen capture and the GIMP Image Editor to view the pixels zooming 16x with a pixel grid.<br>The ascent and descent for the Cairo font choice were 11 and 3 respectively.<br> <div><br></div></div></body></html>