[tex-k] luatex font bug: "checksum mismatch" warnings on 64bit system

Igor Liferenko igor.liferenko at gmail.com
Thu Feb 25 04:15:52 CET 2016


Hi all,

I reported this bug to Debian some days ago, but did not get a
response, so I'm writing here. Keep the CC please.

luatex gives "checksum mismatch" warnings:

    This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)
    checksum mismatch in local font cmb10 (-770990554 != -770990554)
in virtual font
     myfont.vf ignored.
    No pages of output.
    Transcript written on texput.log.

Run the following commands in a clean directory to create OFM/OVF font
and load it in luatex:

echo "(MAPFONT D 0 (FONTNAME cmb10))" > myfont.vpl
tftopl cmb10 >> myfont.vpl
vptovf myfont.vpl
rm myfont.vpl
vftovp -charcode-format=octal myfont.vf > myfont.ovp
rm myfont.tfm myfont.vf
ovp2ovf myfont.ovp
luatex '\font\f=myfont\end'


On i386 system the same versions of texlive packages do not give such warnings.

If we change cmb10 to, e.g., cmr10, no warning is printed.
The problem is that for fonts with values of FONTCHECKSUM above octal
17777777777, the value is interpreted as negative.

Octal 17777777777 is binary 01111111111111111111111111111111
Octal 20000000000 is binary 10000000000000000000000000000000
This is possibly some issue with types of variables on 32bit vs 64bit systems.

Also, "man ofm2opl" says about "-charcode-format" option, which does not exist:
$ ofm2opl -charcode-format=ascii myfont
ofm2opl: unrecognized option '-charcode-format=ascii'
Try `ofm2opl --help' for more information.

Best regards,
Igor


More information about the tex-k mailing list