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] --- bk_ps.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bk_ps.c') diff --git a/bk_ps.c b/bk_ps.c index 7afde34..a3d80a7 100644 --- a/bk_ps.c +++ b/bk_ps.c @@ -200,7 +200,10 @@ void ps_backend(paragraph *sourceform, keywordlist *keywords, /* XXX This may request the same font multiple times. */ if (fe->font->info->fontfile) { fprintf(fp, "%%%%BeginResource: font %s\n", fe->font->info->name); - pf_writeps(fe->font->info, fp); + if (fe->font->info->filetype == TYPE1) + pf_writeps(fe->font->info, fp); + else + sfnt_writeps(fe->font->info, fp); fprintf(fp, "%%%%EndResource\n"); } else { fprintf(fp, "%%%%IncludeResource: font %s\n", -- cgit v1.1