From: Ben Harris Date: Mon, 31 Jul 2017 21:26:40 +0000 (+0100) Subject: Turn off font subsetting when generating glyph complement. X-Git-Tag: bedstead-002.000~107 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=8371e8afb823e2e383e8a6cfcf0c7fc75907a674;p=bedstead.git 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. --- 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) {