5 void read_pfa_file(input
*in
) {
11 len
= fread(buf
, 1, sizeof(buf
) - 1, in
->currfp
);
13 if (strncmp(buf
, "%!FontType1-", 12) &&
14 strncmp(buf
, "%!PS-AdobeFont-", 15))
17 p
+= strcspn(p
, ":") + 1;
18 p
+= strspn(p
, " \t");
19 len
= strcspn(p
, " \t");
20 fontname
= snewn(len
+ 1, char);
21 memcpy(fontname
, p
, len
);
23 for (fi
= all_fonts
; fi
; fi
= fi
->next
) {
24 if (strcmp(fi
->name
, fontname
) == 0) {