[ message from Y.Lu ] I've made a mess of the original gb2ps sources. The files were put together and the cover option was removed since I'm short of disk quota. Anyway, the changes are minor, only a few lines have been modified. (1) comment out the following line in gbmain.c long size_of_CH = 150; and add a line like this: int size_of_CH = 72; /* 24*24/8 */ (2) comment out the following 3 lines in function put_CH() in gbchar.c fseek(cfont, (long) (offset_CH + addr * size_of_CH), 0); fgets(line, size_of_CH, cfont); sscanf(line, "%s %s", st1, st2); and add the following line after: get_bmp(cfont, addr, st1, st2); (3) comment out the following 3 lines in function DefCHdict() in gbchar.c fseek(CHFONT[j].fp, (long) (offset_CH + i * size_of_CH), 0); fgets(line, size_of_CH, CHFONT[j].fp); sscanf(line, "%s %s", st1, st2); and add the following line after: get_bmp(CHFONT[j].fp, i, st1, st2); (4) add a function get_bmp() in the end of the file gbchar.c int get_bmp(fnt_fp, word_indx, qu_wei, hex_array) FILE *fnt_fp; long word_indx; char *qu_wei, *hex_array; { int i, qu, wei; char hextmp[3]; unsigned char bmpbuf[200]; /* must be unsigned char ? */ /* get QuWei identifier string */ qu = (int) (word_indx / QUWEI) + 1; wei = (int) (word_indx % QUWEI) + 1; sprintf(qu_wei, "%02d%02d", qu, wei); /* get hexadecimal string representation of a character bitmap */ hex_array[0] = '\0'; /* making sure it starts as a null string */ fseek(fnt_fp, (long) (offset_CH + word_indx * size_of_CH), 0); (void) fread(bmpbuf, sizeof(unsigned char), (size_t) size_of_CH, fnt_fp); for (i = 0; i < size_of_CH; i++) { sprintf(hextmp, "%02x", bmpbuf[i]); strcat(hex_array, hextmp); } } (5) change the font file name definitions in gb2ps.h if necessary. I've removed these lines: #define SONGTI "csong24.ccf" #define KEITI "ckai24.ccf" #define FANGSONGTI "cfang24.ccf" #define HEITI "chei24.ccf" #define FANTI "cfan24.ccf" #define USERDEF "user24.ccf" and added the following: #define QUWEI 94 #define SONGTI "cclib.24" #define KEITI "cclib.k24" #define FANGSONGTI "cclib.n24" #define HEITI "cclib.h24" #define FANTI "cclib.f24" #define USERDEF "cclib.u24"