%%DocumentFonts triggers code emission: the header must be out by then.

This commit is contained in:
espie 2000-04-23 17:23:11 +00:00
parent 8877f63e41
commit 9ebb003c99

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-kanjips_kanjips_c,v 1.1 2000/04/23 17:06:39 espie Exp $ $OpenBSD: patch-kanjips_kanjips_c,v 1.2 2000/04/23 17:23:11 espie Exp $
--- kanjips/kanjips.c.orig Sun Apr 23 18:59:29 2000 --- kanjips/kanjips.c.orig Tue Jan 16 18:20:29 1990
+++ kanjips/kanjips.c Sun Apr 23 19:05:04 2000 +++ kanjips/kanjips.c Sun Apr 23 19:22:31 2000
@@ -18,6 +18,7 @@ unsigned char *zs; /* for state machine @@ -18,6 +18,7 @@ unsigned char *zs; /* for state machine
FILE *infile = stdin,*outfile = stdout; FILE *infile = stdin,*outfile = stdout;
@ -38,3 +38,14 @@ $OpenBSD: patch-kanjips_kanjips_c,v 1.1 2000/04/23 17:06:39 espie Exp $
} }
} }
} }
@@ -64,6 +70,10 @@ conform(s) unsigned char *s;
s += strlen(CDSTR);
while(isspace(*s)) s++;
if(strmatch(s,DFSTR)){ /* %%DocumentFonts */
+ if (!header_done){
+ outheader();
+ header_done = 1;
+ }
s += strlen(DFSTR);
forgetfont();
for(nfonts = 0; *s && nfonts < MAXFONTS; s++){