Subversion Repositories wimsdev

Rev

Rev 8103 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8103 Rev 8195
Line 46... Line 46...
46
    memset(&tfm,0,sizeof(tfm));
46
    memset(&tfm,0,sizeof(tfm));
47
    snprintf(namebuf,sizeof(namebuf),"%s/%s.tfm",tmpdir,fname);
47
    snprintf(namebuf,sizeof(namebuf),"%s/%s.tfm",tmpdir,fname);
48
    call_sh("cp `kpsewhich %s.tfm` %s",fname,tmpdir);
48
    call_sh("cp `kpsewhich %s.tfm` %s",fname,tmpdir);
49
    len=getfile(namebuf,&tfmbuf); unlink(namebuf);
49
    len=getfile(namebuf,&tfmbuf); unlink(namebuf);
50
    if(len<0) {
50
    if(len<0) {
51
        error("Error reading tfm file.");
51
        texgif_error("Error reading tfm file.");
52
    }
52
    }
53
    for(i=0;i<12;i++) tfmhd[i]=texint(tfmbuf+2*i,2);
53
    for(i=0;i<12;i++) tfmhd[i]=texint(tfmbuf+2*i,2);
54
    tfm.bc=tfmbc; tfm.ec=tfmec;
54
    tfm.bc=tfmbc; tfm.ec=tfmec;
55
    charcnt=tfmec-tfmbc+1;
55
    charcnt=tfmec-tfmbc+1;
56
    if(charcnt<=0) return;
56
    if(charcnt<=0) return;