--- miniline.c.dist Wed May 19 08:30:44 1999 +++ miniline.c Thu Jun 3 00:46:38 1999 @@ -241,6 +241,7 @@ StrSegInfo *pStrSeg; { if (pStrSeg->dyn_str.s != NULL) free(pStrSeg->dyn_str.s); + if (pStrSeg->font_name != NULL) free(pStrSeg->font_name); free(pStrSeg); } --- text.c.dist Wed May 26 16:38:14 1999 +++ text.c Thu Jun 3 01:46:42 1999 @@ -3828,7 +3828,7 @@ *psz2 = '\0'; } font = GetFontIndex(font_str, style, TRUE); - if (font == INVALID) { + if (font == INVALID && !(PRTGIF && !cmdLineOpenDisplay)) { sprintf(gszMsgBox, "Cannot find screen font for '%s'.", font_str); TwoLineMsg(gszMsgBox, " Use Times instead."); @@ -3884,6 +3884,9 @@ direction = canvasFontDirection; } pStrSeg->font = font; + pStrSeg->font_name = (char*)malloc((strlen(font_str)+1)*sizeof(char)); + if (pStrSeg->font_name == NULL) FailAllocMessage(); + strcpy(pStrSeg->font_name, font_str); pStrSeg->style = style; pStrSeg->sz_unit = sz_unit; pStrSeg->w = w; --- tgif.c.dist Mon May 24 09:53:13 1999 +++ tgif.c Thu Jun 3 02:16:24 1999 @@ -234,8 +234,8 @@ } if (cmdLineHasPageNum) { if (cmdLinePageNum > lastPageNum) { - fprintf(stderr, "%s is skipped because it only contains %1d pages!\n", - FileName, lastPageNum); + fprintf(stderr, "%s is skipped because it only contains %1d page%s!\n", + FileName, lastPageNum, lastPageNum == 1? "": "s"); return FALSE; } GotoPageNum(cmdLinePageNum);