ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
To: Taco Hoekwater <taco@elvenkind.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: kerning info (mkiv)
Date: Fri, 07 Jan 2011 15:44:31 +0100	[thread overview]
Message-ID: <4D2726CF.4000900@gmx.net> (raw)
In-Reply-To: <4D271F77.7070207@elvenkind.com>

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
___________________________________________________________________________________


      reply	other threads:[~2011-01-07 14:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 13:48 Peter Rolf
2011-01-07 14:13 ` Taco Hoekwater
2011-01-07 14:44   ` Peter Rolf [this message]

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=4D2726CF.4000900@gmx.net \
    --to=indiego@gmx.net \
    --cc=ntg-context@ntg.nl \
    --cc=taco@elvenkind.com \
    /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).