From 62be4468c8d814e5f66e5c2c7dc21a865bd91be3 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 3 Feb 2007 14:02:21 +0000 Subject: 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] --- paper.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'paper.h') 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 -- cgit v1.1