On 2-2-2012 02:21, Vladimir Lomov wrote:
Correct me if I'm wrong, but this how I understand TFM font and currect state of tex engines (actually pdftex, xetex and luatex):
sort of wrong
1. to use any font in tex one need a TFM file (file name = fontname.TFM), that file actually contain informationabout font, not how exatly glyphs are constructed;
indeed, and when we forget about opentype etc only the tfm is needed
2. when [original] tex read a document file it searches for TFM and VF files, read them and write DVI file with information about that files;
no, the vf is only needed when the backend (which happens to be included in pdftex/luatex) is going to embed the glyph data from the font; only then it needs to know of a glyph is actually a virtual one however, in luatex, due to different internals, vf files are / can be read in earlier as the virtual font model is part of the front end so, it can be in an earlier stage that some mismatch can happen
3. after that user can send file to printer or publisher to print it on printer. As I understand the purpose of checksum was to be sure that publisher or printer would use exatly the same fonts as user. If user converts DVI file to PS/PDF one on his/she computer using dvips or dvipdfm* the checksum mostly useless, assuming files are not corrupted.
no, the checksum only is some safeguard that vf and tfm match if you go through dvi then dvips or dvipdfmx read the vf files
Nowadays pdftex, xetex and luatex are widely used and most time users generate PDF files on the same computer they write documents, send PDF files which have they own mechanism to check font consistency.
But still there are [plenty] DVI files around, as well as luatex engine might generate DVI file. The convertion to PS/PDF is performed by dvips/dvipdfm* programs, that's ok. But what about luatex with DVI output?
i never use luatex with dvi output
My conclusion: 1. if PDF output is only interesting then it is Ok, ignore that message, because font information is already in PDF and PDF programs should deal with it; 2. if DVI output is concerned then luatex _must_ be consistent with pdftex (also can write DVI files), which, imho (don't check), takes care about both TFM and VF checksums.
luatex probably is consistent although in most cases the way that it deals with fonts (read: the macro package deals with fonts) is different from the way it's done with pdftex/xetex if i had the time i'd probably run a few tests and see where the mismatch happens but it has a real low priority for me Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------