summaryrefslogtreecommitdiff
path: root/bk_ps.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2004-09-24 18:47:35 +0000
committerBen Harris <bjh21@bjh21.me.uk>2004-09-24 18:47:35 +0000
commit5d9791b2998818a4d78cf21865bf01bc1aa025b9 (patch)
treea6d61af832281a8d02c0f28a114feff1f86fd854 /bk_ps.c
parent7e2d549ac11fa3e33f0fd12d360317d95bf0f8c2 (diff)
downloadhalibut-5d9791b2998818a4d78cf21865bf01bc1aa025b9.zip
halibut-5d9791b2998818a4d78cf21865bf01bc1aa025b9.tar.gz
halibut-5d9791b2998818a4d78cf21865bf01bc1aa025b9.tar.bz2
halibut-5d9791b2998818a4d78cf21865bf01bc1aa025b9.tar.xz
If you're going to change the metrics of a font, it's necessary to leave space
in the new font dictionary for the Metrics entry. This is mentioned in the first edition of the Red Book, but not the second. [originally from svn r4577]
Diffstat (limited to 'bk_ps.c')
-rw-r--r--bk_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bk_ps.c b/bk_ps.c
index 0f8bc99..af7fde8 100644
--- a/bk_ps.c
+++ b/bk_ps.c
@@ -109,7 +109,8 @@ void ps_backend(paragraph *sourceform, keywordlist *keywords,
sprintf(fname, "f%d", font_index++);
fe->name = dupstr(fname);
- fprintf(fp, "/%s findfont dup length dict begin\n", fe->font->name);
+ fprintf(fp, "/%s findfont dup length 1 add dict begin\n",
+ fe->font->name);
fprintf(fp, "{1 index /FID ne {def} {pop pop} ifelse} forall\n");
fprintf(fp, "/Encoding [\n");
for (i = 0; i < 256; i++)