ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Incorrect math kerning
Date: Mon, 30 May 2016 19:08:15 +0200	[thread overview]
Message-ID: <4e921e20-9edc-c25a-49bd-f0f03aa7895f@wxs.nl> (raw)
In-Reply-To: <alpine.OSX.2.02.1605292348070.14867@nqv-znpobbx>

Hi Aditya,

> This is based on a question about latex on tex.stackexchange:
> http://tex.stackexchange.com/q/312098/323
>
> but context shows the same behaviour.
>
> The subscript "i" in the following example is kerned incorrectly (it is
> too far away from W). Is this a bug in the font, or with the fontloader?
>
> \setupbodyfont[cambria]
>
> \starttext
>
> \startTEXpage[offset=2mm]
> $W_i^i$
> \stopTEXpage
>
> \stoptext

The next beta fixes the scaler but of course that leaves fonts untouched.

However, as a test I added some more lfg files that implement the V and 
W cutins for some fonts. Beware: the lm / gyre fonts are in the process 
of being updated which means that kerning will change (and therefore 
also the rendering) later this year. After that we can still decide to 
ship variants. For now it's directive driven.

\enabledirectives[fontgoodies.mathkerning]

\startTEXpage[offset=2mm]
     \startcombination[4*2]
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont  [modern]$V_i^i 
= W_i^i$\hss}} {\infofont modern}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont [cambria]$V_i^i 
= W_i^i$\hss}} {\infofont cambria}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont[lucidaot]$V_i^i 
= W_i^i$\hss}} {\infofont lucida}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont  [dejavu]$V_i^i 
= W_i^i$\hss}} {\infofont dejavu}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont [pagella]$V_i^i 
= W_i^i$\hss}} {\infofont pagella}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont  [termes]$V_i^i 
= W_i^i$\hss}} {\infofont termes}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont   [bonum]$V_i^i 
= W_i^i$\hss}} {\infofont bonum}
         {\hbox to 50pt{\hss\showboxes\switchtobodyfont  [schola]$V_i^i 
= W_i^i$\hss}} {\infofont schola}
     \stopcombination
\stopTEXpage

A bit of a playground for deciding om where to draw the limit.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2016-05-30 17:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30  3:50 Aditya Mahajan
2016-05-30  7:35 ` Hans Hagen
2016-05-30 14:56   ` Ulrike Fischer
2016-05-30 16:01     ` Hans Hagen
2016-05-30 17:08 ` Hans Hagen [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=4e921e20-9edc-c25a-49bd-f0f03aa7895f@wxs.nl \
    --to=pragma@wxs.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).