ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: (bug?) wrong interline in \placelist[alternative=d] with Pagella italics
Date: Mon, 16 Mar 2020 19:00:09 +0100	[thread overview]
Message-ID: <abb6d8b3-d752-03b5-b79c-2743422f0976@gmail.com> (raw)
In-Reply-To: <03dd7f87-fb98-1331-1027-e87cbb2a4d1a@xs4all.nl>

Hans Hagen schrieb am 16.03.2020 um 18:42:
> On 3/16/2020 6:01 PM, Wolfgang Schuster wrote:
>> Henning Hraban Ramm schrieb am 16.03.2020 um 15:42:
>>>
>>>
>>>> Am 2020-03-16 um 14:35 schrieb Hans Hagen <j.hagen@xs4all.nl>:
>>>>> Yes, pagella is a extreme case but when you use bold text the 
>>>>> vertical spacing is also messed up. You can avoid this when you use 
>>>>> a fixed lineheight (e.g. \setupinterlinespace[line=14pt]) because 
>>>>> the default distance is font dependant (default: 2.8 * ex-height).
>>>> or one can play with these parameters, that default to:
>>>>
>>>> \setupinterlinespace
>>>>   [height=.72,
>>>>    depth=.28]
>>>>
>>>> (maybe we should have recomended values for specific fonts)
>>>
>>> I had similar problems in the past and got to
>>> 2.9ex for Alegreya
>>> 3.2ex for Adobe Jenson
>>>
>>> (Just tried, didn’t calculate anything.)
>>
>> How would this help for the original problem?
> Some fonts have a different ratio (I forgot what font i did .7 / .3) but 
> indeed an all-bold or whatever style change sometimes demands a local 
> \setupinterlinespace (no argument).

I know there are cases where changing the height/depth ration can help 
but in this case the problem is caused by \strut which is bigger for the 
italic font.

A way to fix the wrong spacing here is to add a strut option to 
\setuplist (or use always the upright font to set the strut values).

> Of course one could also tweak the ht/dp of a specific style using one 
> of the pseudo features.

Also possible because the larger value for the ex-height of the italic 
font causes the bigger strut dimensions.

Wolfgang
___________________________________________________________________________________
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:[~2020-03-16 18:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-15 19:32 Pablo Rodriguez
2020-03-15 21:56 ` Wolfgang Schuster
2020-03-16  9:01   ` Pablo Rodriguez
2020-03-16 12:27     ` Wolfgang Schuster
2020-03-16 13:35       ` Hans Hagen
2020-03-16 14:42         ` Henning Hraban Ramm
2020-03-16 17:01           ` Wolfgang Schuster
2020-03-16 17:42             ` Hans Hagen
2020-03-16 18:00               ` Wolfgang Schuster [this message]
2020-03-16 20:04                 ` Pablo Rodriguez

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=abb6d8b3-d752-03b5-b79c-2743422f0976@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --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).