]> git.cworth.org Git - spritext/blobdiff - spritext.c
Make spritext write its output to a PNG file
[spritext] / spritext.c
index 1405c48c4ce1d166a2220d42501c4c13abf7bf3a..a188f3e04328b0279dbcb90e6f0cd376348d57c4 100644 (file)
@@ -33,7 +33,7 @@ get_max_height (cairo_t *cr, char *characters);
 int
 main (void)
 {
-    const char font_filename[] = "/srv/rdworth.org/cgi-bin/Verdana.ttf";
+    const char font_filename[] = "./Vera.ttf";
     char outputJson = FALSE;
 
     char characters[] = {
@@ -297,6 +297,9 @@ cairo_pattern_destroy (gradient);
     }
 #endif
 
+    cairo_surface_write_to_png (surface, "spritext-output.png");
+    printf ("Result written to spritext-output.png\n");
+
     cairo_destroy (cr);
 
     cairo_surface_destroy (surface);