Fairly ropey font-embedding support. In particular, the PDF output is
[sgt/halibut] / in_afm.c
index f771af7..6b7a9f3 100644 (file)
--- a/in_afm.c
+++ b/in_afm.c
@@ -57,6 +57,7 @@ void read_afm_file(input *in) {
     fi->nglyphs = 0;
     fi->glyphs = NULL;
     fi->widths = NULL;
+    fi->fp = NULL;
     fi->kerns = newtree234(kern_cmp);
     fi->fontbbox[0] = fi->fontbbox[1] = fi->fontbbox[2] = fi->fontbbox[3] = 0;
     fi->capheight = fi->xheight = fi->ascent = fi->descent = 0;