diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2007-02-03 14:02:21 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2007-02-03 14:02:21 +0000 |
| commit | 62be4468c8d814e5f66e5c2c7dc21a865bd91be3 (patch) | |
| tree | 80cbf5a16541aba4e059199ddecee1604d7b1a64 /bk_ps.c | |
| parent | 00a9dfeae70a670a881f1af41dbe32833dfa6dc5 (diff) | |
| download | halibut-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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", |