[tex-k] MetaFont: call "gftopk" automatically?

Igor Liferenko igor.liferenko at gmail.com
Thu Oct 8 05:04:49 CEST 2020


Just for the record, this change-file seems to be working fine for me:

    @x
    b_close(&gf_file);
    @y
    char absname[1000];
    char tmp[1000];
    snprintf(tmp, sizeof tmp, "/proc/self/fd/%d", fileno(gf_file.f));
    int nb = readlink(tmp, absname, sizeof absname - 1);
    b_close(&gf_file);
    if (nb != -1) {
      strcpy(tmp, "gftopk ");
      strcat(strncat(tmp, absname, nb), " >/dev/null 2>/dev/null");
      system(tmp);
    }
    @z

(see https://github.com/igor-liferenko/mf)

Igor


More information about the tex-k mailing list.