Hello, trying to reproduce the hand-printed original as close as possible I'm using \setupcharacterkerning. I can match character kerning, but inter-word spaces are different. What is the right option, command or feature to change it for current font and/or in the font definition? I haven't found any. MWE % macros=mkiv \setupcharacterkerning[large][factor=0.1] \setcharacterkerning[large] \starttext \input knuth \stoptext Thank you, Jano
Hi Jano, Seems to me that there are a few options and you might need more than one of them, depending on the font/typefaces you are using (which obviously influences things): 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 2. Another factor will be \setupspacing https://wiki.contextgarden.net/Command/setupspacing 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.... For example, I have found that for a particular project I am working on at the moment, my best setup does not include protrusion, but I use \setupalign [hz,nothyphenated,verytolerant,stretched], and \setuplanguage[en][spacing=packed]. This latter especially because I want to avoid some rather ugly spaces after a period. Then once I see how things look, I apply {\kerncharacters[-0.025] my text} in particular instances where things need to be tidied up. I have found that -0.025 works well in my situation. 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. Hope it helps. Julian On 21/10/20 1:12 am, Jano Kula wrote:
Hello,
trying to reproduce the hand-printed original as close as possible I'm using \setupcharacterkerning. I can match character kerning, but inter-word spaces are different. What is the right option, command or feature to change it for current font and/or in the font definition? I haven't found any.
MWE % macros=mkiv \setupcharacterkerning[large][factor=0.1] \setcharacterkerning[large] \starttext \input knuth \stoptext
Thank you, Jano
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hello Julian!
Thank you for your hints.
On Thu, 22 Oct 2020 at 11:48, jbf
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
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. \setuplanguage[en][spacing=packed].
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 setting. 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 spacing. Regards, Jano
participants (2)
-
Jano Kula
-
jbf