summaryrefslogtreecommitdiff
path: root/paper.h
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2007-02-03 14:02:21 +0000
committerBen Harris <bjh21@bjh21.me.uk>2007-02-03 14:02:21 +0000
commit62be4468c8d814e5f66e5c2c7dc21a865bd91be3 (patch)
tree80cbf5a16541aba4e059199ddecee1604d7b1a64 /paper.h
parent00a9dfeae70a670a881f1af41dbe32833dfa6dc5 (diff)
downloadhalibut-62be4468c8d814e5f66e5c2c7dc21a865bd91be3.zip
halibut-62be4468c8d814e5f66e5c2c7dc21a865bd91be3.tar.gz
halibut-62be4468c8d814e5f66e5c2c7dc21a865bd91be3.tar.bz2
halibut-62be4468c8d814e5f66e5c2c7dc21a865bd91be3.tar.xz
Add support for using TrueType fonts, including embedding in PostScript but
not yet in PDF. There's a lot of cleaning up to be done, especially in the area of error, but I think it would be better committed gradually. [originally from svn r7198]
Diffstat (limited to 'paper.h')
-rw-r--r--paper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/paper.h b/paper.h
index 29d6407..0f45b89 100644
--- a/paper.h
+++ b/paper.h
@@ -90,6 +90,7 @@ struct font_info_Tag {
* Pointer to data about the file containing the font, if any.
*/
void *fontfile;
+ enum { TYPE1, TRUETYPE } filetype;
/* A tree of glyph_widths */
tree234 *widths;
/* A tree of kern_pairs */
@@ -386,6 +387,7 @@ glyph glyph_intern(char const *);
char const *glyph_extern(glyph);
wchar_t ps_glyph_to_unicode(glyph);
extern const char *const ps_std_glyphs[];
+extern glyph const tt_std_glyphs[];
void init_std_fonts(void);
const int *ps_std_font_widths(char const *fontname);
const kern_pair *ps_std_font_kerns(char const *fontname);
@@ -402,4 +404,9 @@ 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);
+/*
+ * Backend functions exported by in_sfnt.c
+ */
+void sfnt_writeps(font_info const *fi, FILE *ofp);
+
#endif