From 30ca2bdcde0675a2d52a9decf9dce73e57fdcee1 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 6 Jan 2007 17:32:34 +0000 Subject: Overhaul of glyph-name handling in the paper backends. Before, we had a separate dense array of glyph names for each font, and referenced glyphs by indicies into that array, which meant that the array had to be set up before we could generate any indices. Now we have an overall array of glyph names, and use the same glyph indicies for all fonts. Some arrays have had to turn into tree234s as a result. [originally from svn r7061] --- bk_ps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bk_ps.c') diff --git a/bk_ps.c b/bk_ps.c index 46652e9..5d1a951 100644 --- 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", -- cgit v1.1