From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Dubious "checksum mismatch" message on log file
Date: Wed, 1 Feb 2012 15:04:07 +0100 [thread overview]
Message-ID: <CAG5iGsCQ0_NdORCtBdK1-e4J70m_WdoLmoF5C9ZwvZ+AgyzERQ@mail.gmail.com> (raw)
In-Reply-To: <20120201134812.GK13420@smoon>
On Wed, Feb 1, 2012 at 2:48 PM, Vladimir Lomov <lomov.vl@gmail.com> wrote:
>> We have
>
>> $>vftovp txr.vf
>> (VTITLE )
>> (FAMILY TXR)
>> (FACE F MRR)
>> (CODINGSCHEME TEX TEXT)
>> (DESIGNSIZE R 10.0)
>> (COMMENT DESIGNSIZE IS IN POINTS)
>> (COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
>> (CHECKSUM O 32212676346)
>
>> while from luatex source
>
>> source/texk/web2c/luatexdir/font/vfovf.w:
>> @ process a local font in \.{VF} file
>> @c
>> static internal_font_number
>> vf_def_font(internal_font_number f, unsigned char *vf_buffer, int *vf_cr)
>> {
>> :
>> unsigned long checksum;
>> cs.b0 = vf_buffer[(*vf_cr)];
>> cs.b1 = vf_buffer[(*vf_cr) + 1];
>> cs.b2 = vf_buffer[(*vf_cr) + 2];
>> cs.b3 = vf_buffer[(*vf_cr) + 3];
>> (*vf_cr) += 4;
>> checksum = (unsigned)
>> (cs.b0 * 256 * 256 * 256 + cs.b1 * 256 * 256 + cs.b2 * 256 + cs.b3);
>> :
>
>> if (checksum != 0 && font_checksum(k) != 0
>> && checksum != font_checksum(k))
>> vf_local_font_warning(f, k, "checksum mismatch", (int) checksum,
>> (int) font_checksum(k));
>> if (ds != font_dsize(k))
>> vf_local_font_warning(f, k, "design size mismatch", ds,
>> font_dsize(k));
>
>> It's not related to MKIV but to luatex, and it's a warning.
>> It doesn't even matter to have --modules==all, this vf file in the
>> standard standalone.
>> Of course you must have the pfb/afm or otf or ttf file, as usual,
>> otherwise the pdf is wrong
>
> I was not sure, that why I began this thread. I started with latex example,
> then strip it down to plain tex one and after that came to context
> minimal example.
it's also in pdftex: see
function vf_def_font
in
src/texk/web2c/pdftexdir/pdftex.web
>
> AFAIU, context suite doesn't have "plain" pdftex and luatex formats,
> therefore I compile minimal plain tex example with TeX Live 2011, and
> luatex doesn't print such message though it reads vf file.
Hm, have a look at
tex/texmf-context/tex/generic/context/luatex
>
> The problem indeed may be it luatex and how it works with vf fonts, but
> as I said, I'm not sure (don't know very well either plain tex or context).
>
> P.S. Unrelated: seems I completely lost, I read web sources, the
> quoted extract from luatex source and I don't understand how this
> number '32212676346' can be presented as
>
> cs.b0 * 256 * 256 * 256 + cs.b1 * 256 * 256 + cs.b2 * 256 + cs.b3
>
> If I don't lose my math skills the '32212676346' is
> 32212676346=7·256^{4}+128·256^{3}+6·256^{2}+110·256^{1}+250·256^{0}
IIRC, 32212676346 should be the checksum stored inside the file, ie
the font_checksum.
--
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2012-02-01 14:04 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 1:09 Vladimir Lomov
2012-02-01 1:37 ` luigi scarso
2012-02-01 6:00 ` Vladimir Lomov
2012-02-01 7:45 ` luigi scarso
2012-02-01 9:21 ` Vladimir Lomov
2012-02-01 9:54 ` luigi scarso
2012-02-01 13:48 ` Vladimir Lomov
2012-02-01 14:04 ` luigi scarso [this message]
2012-02-02 1:28 ` Vladimir Lomov
2012-02-02 1:34 ` luigi scarso
2012-02-01 14:15 ` Ulrike Fischer
2012-02-01 14:22 ` Hans Hagen
2012-02-02 1:21 ` Vladimir Lomov
2012-02-02 8:43 ` Ulrike Fischer
2012-02-02 8:45 ` Hans Hagen
2012-02-01 14:47 ` luigi scarso
2012-02-01 15:51 ` Khaled Hosny
2012-02-01 15:23 ` Khaled Hosny
2012-02-02 8:54 ` Ulrike Fischer
2012-02-02 12:30 ` luigi scarso
2012-02-02 14:47 ` luigi scarso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG5iGsCQ0_NdORCtBdK1-e4J70m_WdoLmoF5C9ZwvZ+AgyzERQ@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).