+ unsigned int cs = 0;
+ Real ds = 1.0;
+
+ /* Assume check_key in first 10 lines */
+ for (int i = 0; i < 10; i++)
+ {
+ fgets (s, sizeof (s), f);
+ if (strncmp (s, check_key, strlen (check_key)) == 0)
+ sscanf (s + strlen (check_key), "%ud", &cs);
+ else if (strncmp (s, size_key, strlen (size_key)) == 0)
+ sscanf (s + strlen (size_key), "%lf", &ds);
+ }
+
+ rewind (f);
+
+ AFM_Font_info *fi;
+ int ok = AFM_parseFile (f, &fi, ~0);