From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Pablo Rodriguez <oinos@gmx.es>
Subject: Re: (bug?) wrong interline in \placelist[alternative=d] with Pagella italics
Date: Mon, 16 Mar 2020 13:27:12 +0100 [thread overview]
Message-ID: <c000938d-3078-dcd6-0094-43d3efb422d0@gmail.com> (raw)
In-Reply-To: <ba02d128-fb14-d6a0-cb4d-3bdf22cc49a5@gmx.es>
Pablo Rodriguez schrieb am 16.03.2020 um 10:01:
> On 3/15/20 10:56 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez schrieb am 15.03.2020 um 20:32:
>>> [...]
>>> Everthing is fine when italic fonts aren’t used.
>>
>> It can be fixed with a strut option for lists, e.g.
>> \setuplist[strut=no]. The problem in this case is that the ex-height for
>> the italic font is larger than the ex-height for the upright font which
>> pushes the text down because add a strut at the begin and end of the
>> entries.
>
> Many thanks for your reply, Wolfgang.
>
> I don’t get \setuplist[strut=no] working in the minimal sample I sent
> yesterday.
The key isn't supported yet but it could help to avoid the spacing problem.
>> Below is a minimal example of the problem, the \setstrut setting changes
>> the height of the strut for the italic font.
>
> I must admit that I don’t understand how to handle struts (I’m not sure
> I understand what they actually are.)
The simple answer is that a strut is a invisible vertical line with the
height and depth of a line. When you look at the example below you can
see the text in the first box touches the top and bottom boundaries.
When we add a strut at the begin and end of the text we ensure the last
line has the depth of a normal line and the first line gets the complete
height of a line.
%%%% begin example
\starttext
\ruledvbox{\samplefile{weisman}}
\blank
\ruledvbox{\begstrut\samplefile{weisman}\endstrut}
\stoptext
%%%% end example
>> Most fonts (I checked only a small number) don't have such a big
>> difference between the ex-height of the upright and italic styles which
>> makes it hard to notice the problem.
>
> Yesterday I realized that Pagella was an extreme case, because I tried
> to report this issue before, but Latin Modern didn’t show the issue (so
> I thought I was doing something wrong).
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).
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-03-16 12:27 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 [this message]
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
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=c000938d-3078-dcd6-0094-43d3efb422d0@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/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).