+}
+
+int
+main (void)
+{
+ char outputJson = FALSE;
+
+ char characters[] = {
+ '!', '"', '#', '$', '%', '&','\'', '(',
+ ')', '*', '+', ',', '-', '.', '/', '0',
+ '1', '2', '3', '4', '5', '6', '7', '8',
+ '9', ':', ';', '<', '=', '>', '?', '@',
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '[','\\', ']', '^', '_', '`',
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h',
+ 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
+ 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
+ 'y', 'z', '{', '|', '}', '~'
+ };
+
+ int i;
+ args_t args;
+ FT_Face ft_face;
+ FT_UInt left_index, right_index;
+ FT_Bool use_kerning;
+ FT_Vector kerning;
+ double max_width, max_height;
+ cairo_surface_t *surface;
+ cairo_t *cr;
+ cairo_font_face_t *cr_face;
+
+ parse_args (&args);
+
+#if USE_CGIC
+ if (outputJson)
+ {
+ cgiHeaderContentType("application/json");
+ } else {
+ cgiHeaderContentType("image/png");
+ }
+#endif
+
+ ft_face = load_ft_face_for_family (args.family);
+
+ use_kerning = FT_HAS_KERNING( ft_face );
+
+ get_characters_max_width_height (ft_face, args.size,
+ characters,
+ &max_width, &max_height);