summaryrefslogtreecommitdiff
path: root/bk_pdf.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_pdf.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_pdf.c')
-rw-r--r--bk_pdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bk_pdf.c b/bk_pdf.c
index 99eb933..74944f0 100644
--- a/bk_pdf.c
+++ b/bk_pdf.c
@@ -236,7 +236,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords,
objtext(fontdesc, buf);
sprintf(buf, "/StemV %g\n", fi->stemv);
objtext(fontdesc, buf);
- if (fi->fontfile) {
+ if (fi->fontfile && fi->filetype == TYPE1) {
object *fontfile = new_object(&olist);
size_t len;
char *ffbuf;