From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64998 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: kerning info (mkiv) Date: Fri, 07 Jan 2011 15:13:11 +0100 Message-ID: <4D271F77.7070207@elvenkind.com> References: <4D2719B0.1090103@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294409613 9000 80.91.229.12 (7 Jan 2011 14:13:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 14:13:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 07 15:13:27 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 1PbD4D-0005zs-LU for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jan 2011 15:13:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A4F6CAA0B; Fri, 7 Jan 2011 15:13:21 +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 XZ84vgxffJwv; Fri, 7 Jan 2011 15:13:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0D19CA9EE; Fri, 7 Jan 2011 15:13:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C57CCA9EE for ; Fri, 7 Jan 2011 15:13:17 +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 s8lL8oaWgZzH for ; Fri, 7 Jan 2011 15:13:15 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 4F334CA9ED for ; Fri, 7 Jan 2011 15:13:15 +0100 (CET) Original-Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p07DprZ1021538 for ; Fri, 7 Jan 2011 14:51:56 +0100 Original-Received: from boo.fritz.box (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id p07EDBxf075432; Fri, 7 Jan 2011 15:13:12 +0100 (CET) (envelope-from taco@elvenkind.com) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101030 Mandriva/3.1.6-1mdv2011.0 (2011.0) Thunderbird/3.1.6 In-Reply-To: <4D2719B0.1090103@gmx.net> X-Virus-Scanned: by XS4ALL Virus Scanner X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=194.109.24.35; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aDQBPS7l - a4a460a7b6f1 - 20110107 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:64998 Archived-At: 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. Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________