ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: news3@nililand.de, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Incorrect math kerning
Date: Mon, 30 May 2016 18:01:01 +0200	[thread overview]
Message-ID: <126a4978-95bf-fcdc-87bf-f81eba14be6e@wxs.nl> (raw)
In-Reply-To: <cm41et8r9hu3.dlg@nililand.de>

[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]

On 5/30/2016 4:56 PM, Ulrike Fischer wrote:
> Am Mon, 30 May 2016 09:35:25 +0200 schrieb Hans Hagen:
>
>> In cambria staircase kerns are used for this but they are not defined
>> for all (base) characters.
>
> Are this these values:
>
>    ["math"]={
>     ["kerns"]={
>      ["bottomright"]=36,
>      ["topright"]=17,
>     },
>    },
>
>
> ? If yes, how could one change them to check if other values gives a
> better result?

I looked into it a bit and found a few issues.

(1) i forgot to adapt the scaler to the new fontloader so i fixed that 
(no beta yet)

(2) the old (ff) loader makes up some values which is probably a side 
effect of the at that time missing spec; it's harmless and ok but 
results in different tables between old and new loader

(3) you're right about the spot to patch or add but keep in mind that 
you look at the packed font table, so in the end you end up with something:

         kerns = {
             [0x1D449] = { bottomright = { { kern = -200 } } }, -- it V
             [0x1D44A] = { bottomright = { { kern = -100 } } }, -- it W
         }

the amount of kerning is subjected to personal preferences e.g. lucida 
has way less bottom kerning than cambria for instance

attached a sample for italic V and W

- native lucida ot kerning
- native cambria kerning
- specified for other fonts

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
-----------------------------------------------------------------

[-- Attachment #2: cutins.pdf --]
[-- Type: application/x-pdf, Size: 73164 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2016-05-30 16:01 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 [this message]
2016-05-30 17:08 ` Hans Hagen

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=126a4978-95bf-fcdc-87bf-f81eba14be6e@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=news3@nililand.de \
    --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).