From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74238 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Re: Dubious "checksum mismatch" message on log file Date: Wed, 1 Feb 2012 22:48:12 +0900 Message-ID: <20120201134812.GK13420@smoon> References: <20120201010904.GH13420@smoon> <20120201060009.GI13420@smoon> <20120201092131.GJ13420@smoon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328104129 20403 80.91.229.3 (1 Feb 2012 13:48:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2012 13:48:49 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 01 14:48:49 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RsaYJ-000298-Pe for gctc-ntg-context-518@m.gmane.org; Wed, 01 Feb 2012 14:48:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFC04CB278; Wed, 1 Feb 2012 14:48:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cXLNAFZsCe2r; Wed, 1 Feb 2012 14:48:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AA28DCB272; Wed, 1 Feb 2012 14:48:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53A07CB272 for ; Wed, 1 Feb 2012 14:48:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L8DBr-b7qgIn for ; Wed, 1 Feb 2012 14:48:23 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id A87A6CB270 for ; Wed, 1 Feb 2012 14:48:23 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q11DmMe6029077 for ; Wed, 1 Feb 2012 14:48:22 +0100 Original-Received: by bkbzs2 with SMTP id zs2so1357217bkb.14 for ; Wed, 01 Feb 2012 05:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=LgwlyxHThoJhkCor4PU0MvVnpUfTcc+hoHMQC2Z3jj0=; b=uGpv5pT3h3nRTH4GK4BKreiHc7TTfMLvzjk37+RIIz8TgAF8Ihg5gab8bGXbJT3Y+8 StImXIJ9TU0RzMw/YzXOYzhPiyl3BcXBj4XIlxt8NSQ4Oj6Azzm+bngHMs3GumNi2gUQ XiFrHnc/S/Nq3S7leAQZc2FLSaGuBtuvg6unU= Original-Received: by 10.204.10.86 with SMTP id o22mr4260501bko.111.1328104101838; Wed, 01 Feb 2012 05:48:21 -0800 (PST) Original-Received: from smoon ([141.105.33.55]) by mx.google.com with ESMTPS id cz3sm54814718bkb.3.2012.02.01.05.48.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Feb 2012 05:48:20 -0800 (PST) Mail-Followup-To: Vladimir Lomov , ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGsBMmlc - f2e713389b37 - 20120201 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74238 Archived-At: Hello, ** luigi scarso [2012-02-01 10:54:04 +0100]: > On Wed, Feb 1, 2012 at 10:21 AM, Vladimir Lomov wrot= e: >> Hello, >> ** luigi scarso [2012-02-01 08:45:18 +0100]: >>> On Wed, Feb 1, 2012 at 7:00 AM, Vladimir Lomov wro= te: >>>> I specially chose that font (txr, txr.tfm and txr.vf files), it is >>>> distributed by txfonts "package". May be you installation doesn't have >>>> them because I installed context suite with './first-setup.sh --module= s=3Dall'. >>>> Nevertheless, that 'Font ... at 600 ...' reminds me how pdftex (pdflat= ex >>>> actually) deals with tfm/mf/pk fonts (generate pk and insert them into >>>> pdf file). >>> Even with --modules=3Dall' >>> LuaTeX warning (file rtxptmr): Font rtxptmr at 600 not found >>> and >>> $> pdffonts test.pdf >>> name =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ty= pe =A0 =A0 =A0 =A0 =A0 =A0 =A0emb sub uni object ID >>> ------------------------------------ ----------------- --- --- --- ----= ----- >>> Error: font resource is not a dictionary >>> JFRMQG+LMRoman10-Regular =A0 =A0 =A0 =A0 =A0 =A0 CID Type 0C =A0 =A0 = =A0 yes yes yes =A0 =A0 18 =A00 >>> It seems that this font is not a font of the suite. >> Let me stess it in other words: this ("Font ... not found") is not the >> topic of thread. It is completely inrelated (IMHO) with vf font >> problem (vf font leads to that "checksum" message). I took that font >> because it has corresponding vf file. >ok it was just to have as much data as possible. > 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 =3D vf_buffer[(*vf_cr)]; > cs.b1 =3D vf_buffer[(*vf_cr) + 1]; > cs.b2 =3D vf_buffer[(*vf_cr) + 2]; > cs.b3 =3D vf_buffer[(*vf_cr) + 3]; > (*vf_cr) +=3D 4; > checksum =3D (unsigned) > (cs.b0 * 256 * 256 * 256 + cs.b1 * 256 * 256 + cs.b2 * 256 + cs.b= 3); > : > if (checksum !=3D 0 && font_checksum(k) !=3D 0 > && checksum !=3D font_checksum(k)) > vf_local_font_warning(f, k, "checksum mismatch", (int) checks= um, > (int) font_checksum(k)); > if (ds !=3D 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=3D=3Dall, 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. 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. 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=3D7=B7256^{4}+128=B7256^{3}+6=B7256^{2}+110=B7256^{1}+250=B7256= ^{0} --- WBR, Vladimir Lomov -- = If only God would give me some clear sign! Like making a large deposit in my name at a Swiss bank. -- Woody Allen, "Without Feathers" ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________