summaryrefslogtreecommitdiff
path: root/paper.h
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2006-12-09 14:44:47 +0000
committerBen Harris <bjh21@bjh21.me.uk>2006-12-09 14:44:47 +0000
commit76b522bc5aac82f7d1c0e3433f1620a7a192bdad (patch)
tree3096ba08982d23b7ea63a83649360f490acb20d4 /paper.h
parent92242aeaf21903a4c5a12a7c74eb77fcd7158a52 (diff)
downloadhalibut-76b522bc5aac82f7d1c0e3433f1620a7a192bdad.zip
halibut-76b522bc5aac82f7d1c0e3433f1620a7a192bdad.tar.gz
halibut-76b522bc5aac82f7d1c0e3433f1620a7a192bdad.tar.bz2
halibut-76b522bc5aac82f7d1c0e3433f1620a7a192bdad.tar.xz
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]
Diffstat (limited to 'paper.h')
-rw-r--r--paper.h11
1 files changed, 11 insertions, 0 deletions
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