ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: Re: Math kerning broken in latest beta
Date: Wed, 11 Apr 2018 15:26:34 +0200	[thread overview]
Message-ID: <582e355a-e966-8091-8ca1-5b7223851592@xs4all.nl> (raw)
In-Reply-To: <33w7y1268gp0$.dlg@nililand.de>

On 4/11/2018 2:00 PM, Ulrike Fischer wrote:
> Am Wed, 11 Apr 2018 10:53:58 +1200 schrieb Henri Menke:
> 
>> The math kerning seems to be broken in recent versions of LuaTeX.  When I
>> process the MWE below with TeX Live 2017 (LuaTeX 1.0.4) I get a different result
>> from the latest beta (LuaTeX 1.07.0).
> 
> 
> We see this in latex too, at looks as if only single atoms are
> affected, so adding something to the subscript gives another result:
> 
> $\gamma_{e^2} \gamma_{ee} \gamma_{e\hphantom{\strut}} \gamma_{e} $
> 
> (I can't test it with context, for some reason it currently don't
> find the stix fonts on this pc)
The usual 'math italic mess' where fonts assume italic correction 
instead of proper math kerns.

I'll add a fix for that. We already have \mathscriptcharmode (default 1)
for lists and will have \mathboxcharmode (also defaulting to 1) for 
loose chars. We can turn it off in order to investigate issues with real 
math kerns (which most fonts seem to lack). Depending on how fonts 
develop We might need a font bound flag too.

(In context i might turn these italics into proper math kerns some day.)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-04-11 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 22:53 Henri Menke
2018-04-11 12:00 ` Ulrike Fischer
2018-04-11 13:26   ` Hans Hagen [this message]
2018-04-11 14:27     ` Ulrike Fischer

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=582e355a-e966-8091-8ca1-5b7223851592@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --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).