From 8371e8afb823e2e383e8a6cfcf0c7fc75907a674 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 31 Jul 2017 22:26:40 +0100 Subject: [PATCH] Turn off font subsetting when generating glyph complement. After all, we do rather need the full font. Admittedly, we don't need the 14 copies tht Ghostscript 9.18 puts in, but this still somehow makes the file smaller. --- bedstead.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bedstead.c b/bedstead.c index c48f795..3bde77a 100644 --- a/bedstead.c +++ b/bedstead.c @@ -2151,6 +2151,7 @@ glyph_complement() printf("%%!PS-Adobe\n"); printf("%%%%Creator: bedstead\n"); printf("%%%%Title: Bedstead Glyph Complement\n"); + printf("%%%%LanguageLevel: 2\n"); printf("/xfont /Bedstead findfont 20 scalefont def\n"); printf("/lfont /Bedstead findfont 4 scalefont def\n"); printf("/str 50 string def\n"); @@ -2169,6 +2170,8 @@ glyph_complement() printf(" 0 0 moveto 0 40 lineto 40 40 lineto 40 0 lineto closepath\n"); printf(" 1 setlinewidth stroke\n"); printf("} def\n"); + printf("/setdistillerparams where\n"); + printf("{ pop << /SubsetFonts false >> setdistillerparams } if\n"); printf("%%%%EndProlog\n"); for (i = 0; i < nglyphs; i++) { if (i % (nrow*ncol) == 0) { -- 2.30.2