* inter-word spacing @ 2020-10-20 14:12 Jano Kula 2020-10-22 9:48 ` jbf 0 siblings, 1 reply; 3+ messages in thread From: Jano Kula @ 2020-10-20 14:12 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 444 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 728 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: inter-word spacing 2020-10-20 14:12 inter-word spacing Jano Kula @ 2020-10-22 9:48 ` jbf 2020-10-22 12:38 ` Jano Kula 0 siblings, 1 reply; 3+ messages in thread From: jbf @ 2020-10-22 9:48 UTC (permalink / raw) To: Jano Kula; +Cc: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2394 bytes --] 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 > ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 4150 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: inter-word spacing 2020-10-22 9:48 ` jbf @ 2020-10-22 12:38 ` Jano Kula 0 siblings, 0 replies; 3+ messages in thread From: Jano Kula @ 2020-10-22 12:38 UTC (permalink / raw) To: jbf; +Cc: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2070 bytes --] Hello Julian! Thank you for your hints. On Thu, 22 Oct 2020 at 11:48, jbf <roma83537@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. \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 [-- Attachment #1.2: Type: text/html, Size: 3696 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-22 12:38 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-10-20 14:12 inter-word spacing Jano Kula 2020-10-22 9:48 ` jbf 2020-10-22 12:38 ` Jano Kula
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).