From 76b522bc5aac82f7d1c0e3433f1620a7a192bdad Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 9 Dec 2006 14:44:47 +0000 Subject: Correct embedding of Type 1 fonts in PDF. Error cases (e.g. invalid Type 1 fonts) may not be well handled, and may emit invalid PDF. [originally from svn r6974] --- paper.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'paper.h') diff --git a/paper.h b/paper.h index 03b0f1b..b0ea032 100644 --- a/paper.h +++ b/paper.h @@ -68,6 +68,11 @@ struct font_info_Tag { * The file containing this font, if any. */ FILE *fp; + filepos pos; + /* + * Lengths of the unencrypted and encrypted portions of the font. + */ + long length1, length2; /* * An array of pointers to the available glyph names, and their * corresponding character widths. These two arrays have @@ -376,4 +381,10 @@ const kern_pair *ps_std_font_kerns(char const *fontname); */ char *pdf_outline_convert(wchar_t *s, int *len); +/* + * Backend functions exported by in_pf.c + */ +void pf_part1(font_info *fi, char **bufp, size_t *lenp); +void pf_part2(font_info *fi, char **bufp, size_t *lenp); + #endif -- cgit v1.1