Make ps_glyph_to_unicode() take a glyph index instead of a glyph name.
[sgt/halibut] / bk_ps.c
diff --git a/bk_ps.c b/bk_ps.c
index 46652e9..5d1a951 100644 (file)
--- a/bk_ps.c
+++ b/bk_ps.c
@@ -230,8 +230,7 @@ void ps_backend(paragraph *sourceform, keywordlist *keywords,
        ps_token(fp, &cc, "{1 index /FID ne {def} {pop pop} ifelse} forall\n");
        ps_token(fp, &cc, "/Encoding [\n");
        for (i = 0; i < 256; i++)
-           ps_token(fp, &cc, "/%s",
-                    fe->vector[i] ? fe->vector[i] : ".notdef");
+           ps_token(fp, &cc, "/%s", glyph_extern(fe->vector[i]));
        ps_token(fp, &cc, "] def\n");
        ps_token(fp, &cc, "currentdict end\n");
        ps_token(fp, &cc, "/fontname-%s exch definefont /%s exch def\n",