summaryrefslogtreecommitdiff
path: root/bk_ps.c
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 /bk_ps.c
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 'bk_ps.c')
-rw-r--r--bk_ps.c5
1 files changed, 4 insertions, 1 deletions
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",