From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Joseph <josephcanedo@gmail.com>
Subject: Re: Issue with grid
Date: Mon, 23 Nov 2020 00:05:00 +0100 [thread overview]
Message-ID: <a7688657-53fc-d70e-e239-5b9bd4829177@xs4all.nl> (raw)
In-Reply-To: <5340888B-7318-456A-85A7-F2D6F46BE8D2@hxcore.ol>
On 11/22/2020 5:03 PM, Joseph wrote:
> Dear list,
>
> In some cases with latest LMTX I see text not aligned to grid. MWE
> reproduces the problem (could not reproduce with default font).
>
> Typesetting MWE using online ConTeXt page shows correctly aligned text
> on grid.
>
> \showgrid
>
> \setuplayout[grid=both]
>
> \definefontfeature[base][mode=node]
>
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
>
> \setupbodyfont[mainfont, 9pt]
>
> \starttext
>
> \blank[line, samepage]Fin des psalmes.
>
> \blank[line, samepage]Fin des psalmes.
>
> \dorecurse{8}{\input knuth
>
> }
>
> \stoptext
>
> If number of itérations is changed from 8 to 7) problem does not appear,
> seems to be linked to the fact page is fully filled with lines.
>
> If one of the \blank lines is commented out problem does not occur either.
It might have to do with the fact that the height/depth ratio that is
used doesn't match well with the ascenders/descenders of the font that
you use. The defaults are:
\setupinterlinespace
[height=.72,
depth=.28,
line=2.8\exheight]
so you can play with these. The 72:28 ratio works ok for most fonts but
sometimes need to be adapted. Sometimes the 2.8 is not enough.
(makes me wonder: i can issue a warning when a font can overrun)
(normally grid snapping should catch is but columns are kind of different)
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-11-22 23:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 16:03 Joseph
2020-11-22 17:54 ` Pablo Rodriguez
2020-11-22 18:50 ` RE : " Joseph
2020-11-22 23:05 ` Hans Hagen [this message]
2020-11-23 8:31 ` Joseph
2020-11-23 9:54 ` Hans Hagen
2020-11-23 10:13 ` RE : " Joseph
2020-11-23 12:18 ` Hans Hagen
2020-11-23 15:29 ` RE : " Joseph
2020-11-23 16:13 ` Pablo Rodriguez
2020-11-25 17:10 ` RE : " Joseph
2020-11-25 17:35 ` Hans Hagen
2020-11-22 23:09 ` 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=a7688657-53fc-d70e-e239-5b9bd4829177@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=josephcanedo@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).