summaryrefslogtreecommitdiff
path: root/in_afm.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2006-05-14 13:42:48 +0000
committerBen Harris <bjh21@bjh21.me.uk>2006-05-14 13:42:48 +0000
commite06921ba9541759101336126a6af96ab66b9ee2d (patch)
tree96ec2e47e9f592d08ea7af56893873e5c4704bbf /in_afm.c
parent9f368a32d754b2827a38f51aa6191aa625ce6a10 (diff)
downloadhalibut-e06921ba9541759101336126a6af96ab66b9ee2d.zip
halibut-e06921ba9541759101336126a6af96ab66b9ee2d.tar.gz
halibut-e06921ba9541759101336126a6af96ab66b9ee2d.tar.bz2
halibut-e06921ba9541759101336126a6af96ab66b9ee2d.tar.xz
Fairly ropey font-embedding support. In particular, the PDF output is
technically incorrect, though it works perfectly well with xpdf. To do it properly requires actually parsing the unencrypted part of a Type 1 font, which will be a bit tedious in C. [originally from svn r6685]
Diffstat (limited to 'in_afm.c')
-rw-r--r--in_afm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/in_afm.c b/in_afm.c
index f771af7..6b7a9f3 100644
--- 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;