summaryrefslogtreecommitdiff
path: root/paper.h
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2007-02-08 21:50:00 +0000
committerBen Harris <bjh21@bjh21.me.uk>2007-02-08 21:50:00 +0000
commita0a77360d18d8207cbd67bb00297553fe90bc43a (patch)
tree2ba73cfd34a0ccc385e1b82536f76e0a291fda1f /paper.h
parent032b461a08eebc91d19f12c3e4d78032a5a173db (diff)
downloadhalibut-a0a77360d18d8207cbd67bb00297553fe90bc43a.zip
halibut-a0a77360d18d8207cbd67bb00297553fe90bc43a.tar.gz
halibut-a0a77360d18d8207cbd67bb00297553fe90bc43a.tar.bz2
halibut-a0a77360d18d8207cbd67bb00297553fe90bc43a.tar.xz
Support for embedding TrueType fonts in PDF output. The code isn't the most
beautiful I've ever written, and xpdf turns out not to support the encoding mechanism I've chosen, but it works in GhostScript so I'm not too unhappy for now. [originally from svn r7259]
Diffstat (limited to 'paper.h')
-rw-r--r--paper.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/paper.h b/paper.h
index b68fd5f..3f20fc2 100644
--- a/paper.h
+++ b/paper.h
@@ -393,8 +393,14 @@ const int *ps_std_font_widths(char const *fontname);
const kern_pair *ps_std_font_kerns(char const *fontname);
/*
- * Function from bk_pdf.c borrowed by bk_ps.c
+ * Functions exported from bk_pdf.c
*/
+typedef struct object_Tag object;
+typedef struct objlist_Tag objlist;
+object *new_object(objlist *list);
+void objtext(object *o, char const *text);
+void objstream(object *o, char const *text);
+void objstream_len(object *o, char const *text, size_t len);
char *pdf_outline_convert(wchar_t *s, int *len);
/*
@@ -413,5 +419,7 @@ void pf_writeps(font_info const *fi, FILE *ofp);
* Backend functions exported by in_sfnt.c
*/
void sfnt_writeps(font_info const *fi, FILE *ofp);
+void sfnt_cmap(font_encoding *fe, object *);
+void sfnt_data(font_info *fi, char **bufp, size_t *lenp);
#endif