Tidy up the handling of non-standard glyphs by defining glyph_extern()
[sgt/halibut] / bk_ps.c
diff --git a/bk_ps.c b/bk_ps.c
index 7afde34..a3d80a7 100644 (file)
--- 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",