X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/2dcd218d343644f65b34bf6075267c630a228cc7..babfe3e260c345c06201516d990155ca8aba49e3:/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",