summaryrefslogtreecommitdiff
path: root/paper.h
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2007-01-27 20:47:41 +0000
committerBen Harris <bjh21@bjh21.me.uk>2007-01-27 20:47:41 +0000
commit72d22e8a1a1b47635e1b8da49ae703bde01228f2 (patch)
tree64b4c37716491d55c10c4287c473e6d6715da7dd /paper.h
parent2641476245d6cb1e9e85d37c6c539741aff2800d (diff)
downloadhalibut-72d22e8a1a1b47635e1b8da49ae703bde01228f2.zip
halibut-72d22e8a1a1b47635e1b8da49ae703bde01228f2.tar.gz
halibut-72d22e8a1a1b47635e1b8da49ae703bde01228f2.tar.bz2
halibut-72d22e8a1a1b47635e1b8da49ae703bde01228f2.tar.xz
Add support for PFB files. This seems to have caused me to completely
rewrite the Type 1 font support, and I'm sure the result is more complex than it needs to be, but it seems to work correctly, so I shouldn't complain. [originally from svn r7175]
Diffstat (limited to 'paper.h')
-rw-r--r--paper.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/paper.h b/paper.h
index a15cbc7..29d6407 100644
--- a/paper.h
+++ b/paper.h
@@ -87,14 +87,9 @@ struct font_info_Tag {
*/
const char *name;
/*
- * The file containing this font, if any.
+ * Pointer to data about the file containing the font, if any.
*/
- FILE *fp;
- filepos pos;
- /*
- * Lengths of the unencrypted and encrypted portions of the font.
- */
- long length1, length2;
+ void *fontfile;
/* A tree of glyph_widths */
tree234 *widths;
/* A tree of kern_pairs */
@@ -405,5 +400,6 @@ char *pdf_outline_convert(wchar_t *s, int *len);
*/
void pf_part1(font_info *fi, char **bufp, size_t *lenp);
void pf_part2(font_info *fi, char **bufp, size_t *lenp);
+void pf_writeps(font_info const *fi, FILE *ofp);
#endif