X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/3e2dd889175865f670a2309f757eee3d6a7f4723..39d3d9002fc5eb3a66e926af9e5350030762add9:/paper.h diff --git a/paper.h b/paper.h index 29d6407..b68fd5f 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); @@ -396,10 +398,20 @@ const kern_pair *ps_std_font_kerns(char const *fontname); char *pdf_outline_convert(wchar_t *s, int *len); /* + * Function exported from bk_ps.c + */ +void ps_token(FILE *fp, int *cc, char const *fmt, ...); + +/* * 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); 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