[NTG-context] inter-word spacing

Jano Kula jano.kula at gmail.com
Thu Oct 22 14:38:18 CEST 2020

Hello Julian!

Thank you for your hints.

On Thu, 22 Oct 2020 at 11:48, jbf <roma83537 at gmail.com> wrote:

> 1. One factor will be whether you are using \definefontfeature
> [default][default]  [expansion=quality,protrusion=quality], which you
> obviously then need to call in with \setupalign.
> https://wiki.contextgarden.net/Command/setupalign
This doesn't influence the dimension of space. Well, it does, but it is a
side effect of alignment and line breaking algorithm. One cannot change the
space to a particular value/factor.

2. Another factor will be \setupspacing
> https://wiki.contextgarden.net/Command/setupspacing
This would work if the parameter could be *dimension* (\setupspacing[5pt]),
but it cannot.

> 3. A third factor might be the need to tweak things a bit once you take a
> look at what is produced, and where you might need to use a couple of other
> options, be it \, \nospace, \thinspace....
If one will finetune every space in the paragraph, this could be a way, but
it's far from a nice solution.

> This latter especially because I want to avoid some rather ugly spaces
> after a period.
Which is an equivalent of \frenchspacing primitive (only regular space
after period). In most languages spacing=packed is likely the default

Not at all sure if all the above is what the purists would do, but from a
> practical point of view it works for me.
Purists wouldn't change kerning at all, because the font designer knows
best, what kerning should be used. Anyway, once the graphic designer starts
changing leterspacing (kerning), the space correction is sometimes needed,
too. ConTeXt changes the space proportionally to \setupcharacterkerning,
which is fine in most cases.

For this use case (short text in one font) primitive \spaceskip3.2pt will
do the job (ragged text thus no glue). I was searching for the more
abstract solution like \setupspacing[factor=1.05], because once in a while
the correction is needed. Or font goodies could be the way to change

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201022/b1098960/attachment.htm>

More information about the ntg-context mailing list