#include int main (void) { cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 800, 600); cairo_t *cr = cairo_create (surface); cairo_matrix_t identity; cairo_matrix_init_identity (&identity); cairo_matrix_t matrix; cairo_matrix_init_scale (&matrix, 106, 106); cairo_font_face_t *face = cairo_toy_font_face_create ("Mademoiselle Camille", CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_NORMAL); cairo_font_options_t *options = cairo_font_options_create (); cairo_scaled_font_t *font = cairo_scaled_font_create (face, &matrix, &identity, options); cairo_set_source_rgb (cr, .5, .5, .5); cairo_paint (cr); cairo_set_scaled_font (cr, font); cairo_set_source_rgb (cr, .0, .0, .0); cairo_move_to (cr, 200, 300); cairo_show_text (cr, "M"); cairo_destroy (cr); cairo_surface_write_to_png (surface, "test-camille.png"); cairo_surface_destroy (surface); return 0; }