From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64999 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: kerning info (mkiv) Date: Fri, 07 Jan 2011 15:44:31 +0100 Message-ID: <4D2726CF.4000900@gmx.net> References: <4D2719B0.1090103@gmx.net> <4D271F77.7070207@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294411487 19039 80.91.229.12 (7 Jan 2011 14:44:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 14:44:47 +0000 (UTC) Cc: mailing list for ConTeXt users To: Taco Hoekwater Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 07 15:44:43 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbDYZ-00052I-7C for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jan 2011 15:44:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A136CAA0B; Fri, 7 Jan 2011 15:44:42 +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 K4+cOyRzLJvv; Fri, 7 Jan 2011 15:44:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C9347CAA02; Fri, 7 Jan 2011 15:44:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 93E02CAA02 for ; Fri, 7 Jan 2011 15:44:38 +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 tbaPWBmCPWc3 for ; Fri, 7 Jan 2011 15:44:36 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 465D7CAA01 for ; Fri, 7 Jan 2011 15:44:36 +0100 (CET) Original-Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p07EiZjM003596 for ; Fri, 7 Jan 2011 15:44:35 +0100 Original-Received: (qmail invoked by alias); 07 Jan 2011 14:44:35 -0000 Original-Received: from ip-109-90-9-94.unitymediagroup.de (EHLO [192.168.178.3]) [109.90.9.94] by mail.gmx.net (mp057) with SMTP; 07 Jan 2011 15:44:35 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX188LScbDo88abWFyCV6ofj9YXDmalllo8QEMExgCA vPyJjS6XWfg3bE User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.7 In-Reply-To: <4D271F77.7070207@elvenkind.com> X-Enigmail-Version: 1.1.1 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06DQCIz6a - 0d866d5ef89a - 20110107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:64999 Archived-At: Am 07.01.2011 15:13, schrieb Taco Hoekwater: > On 01/07/2011 02:48 PM, Peter Rolf wrote: >> The character stands in the first column, followed by width, height and >> depth (in pixel). The "*kerning" line shows the kerning value (in sp) of >> the neighbouring character pair. No problem here. >> >> But "A much longer Test graphic VATo" >> >> sees no kerning for "VATo" (although the text is printed with the >> correct kerning). >> >> What am I missing? Example code is attached. > > Your code only reports a kern if it happens between the first > occurrence of a certain glyph and is predecessor. After that > first attempt, the > > if not char[u] then ... > > condition evaluates to false, so no further reporting is done. > > In other words, your longer example fails to report anything for > the "VA", "AT", and "To" combinations because all the second > glyphs in the pairs have already been seen before in a non-kerned > combination ("A", "lo", " T"). > > You have to rethink the loop logic. > Ah, I see the problem now. Many thanks Taco!!!!! :-) Best wishes, Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________