Re: [NTG-context] Setting up protrusion, side-effects
I hate to pick up on this again, but... The basic Palatino, together with protrusion and small caps is causing issues. Essentially horizontal placing of the characters fails (see previous PDF). In the example below, I can reliably cause the effect by commenting out (or not) the line with the \sc. This effect shows up the my "real" files. While trying to find the trigger by culling down the files, for a moment I could reliably (!) turn the effect on and off with the line %\setupfootertexts[chapter][pagenumber] and not changing the \sc lines. Weird side effect? Sorry, I can't reproduce that one anymore. One way to reduce, but not prevent the effect, is if more plain text is output before using \sc. eg by adding an \input tufte beforehand. But once the text after the \sc is a bit longer ie. 10x tufte the effect will show again. Gut feeling: successive and cumulative rounding errors. Question: Am I tripping over "side effects"? Is using SmallCaps a bad idea when using protrusion? It just feels odd that something like this would be so uncontrollable. Particularly since the palatino font is from the TexGyre set (so close to home) Thanks for thoughts! Martin \definefontfeature [default][default][protrusion=quality,expansion=quality] \setupalign[hz,hanging] %\setupfooter[text][before=\hairline,leftwidth=.85\textwidth,style=\tfx] %\setupfootertexts[chapter][pagenumber] %\usetypescript[palatino] \setupbodyfont[palatino,12pt] \starttext %\input tufte {\sc Erster Teil} \input tufte \stoptext
Fonts are sometimes special and when ypu load a font it's setting (e.g. ligatures, protrusion etc.) are frozen. To change the settings you need \definefontfeature before \setupbodyfont, Wolfgang
On 29-7-2010 12:12, Martin Althoff wrote:
I hate to pick up on this again, but...
The basic Palatino, together with protrusion and small caps is causing issues. Essentially horizontal placing of the characters fails (see previous PDF).
In the example below, I can reliably cause the effect by commenting out (or not) the line with the \sc.
Could as well be a luatex backend problem so I have to discuss it with Taco and Hartmut. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Could as well be a luatex backend problem so I have to discuss it with Taco and Hartmut.
Hans
Hi Hans, Thanks for looking into this further. I have tried to drill down the effect being switchable through \setupfootertexts here are my results. In the example below, I get (with the stress about the latest update, I refrained, running: LuaTeX, Version beta-0.60.2-2010070117; ConTeXt ver: 2010.07.27 16:30) I can switch/influence the horizontal collapse by (this is not a series of steps, each statement assumes starting with the example as given): -- as given, the lines collapse. -- en-/disabling \sc makes problem switchable -- en-/disabling \setupfootertexts, problem switchable, however, once \setuppagenumbering is commented out, this does not work anymore. The error stays permanently. -- enabling "\input tufte" in front of the \sc line causes the problem to appear permanently now. -- adding more tuftes before or after shifts the problem either way. But now the permutation of cases gets a bit much... % protusion \definefontfeature [default][default][protrusion=quality,expansion=quality] \setupalign[hz,hanging] \setupfootertexts[chapter][pagenumber] \setuppagenumbering [location=] \usetypescript[palatino] \setupbodyfont[times,12pt] \starttext %\input tufte %\dorecurse {5}{\input tufte} {\sc Die Exposition der Frage} Notwendigkeit, Struktur und Vorrang der Frage \section {Wiederholung der Frage} \dorecurse {5}{\input tufte} \stoptext
On 31-7-2010 8:17, Martin Althoff wrote:
Could as well be a luatex backend problem so I have to discuss it with Taco and Hartmut.
Hans
Hi Hans,
Thanks for looking into this further. I have tried to drill down the effect being switchable through \setupfootertexts here are my results.
In the example below, I get (with the stress about the latest update, I refrained, running: LuaTeX, Version beta-0.60.2-2010070117; ConTeXt ver: 2010.07.27 16:30) I can switch/influence the horizontal collapse by (this is not a series of steps, each statement assumes starting with the example as given):
-- as given, the lines collapse.
-- en-/disabling \sc makes problem switchable
-- en-/disabling \setupfootertexts, problem switchable, however, once \setuppagenumbering is commented out, this does not work anymore. The error stays permanently.
-- enabling "\input tufte" in front of the \sc line causes the problem to appear permanently now.
-- adding more tuftes before or after shifts the problem either way. But now the permutation of cases gets a bit much...
It has to do with the backend resolving fontnames and expansions factors and so ... first I need to hear from Hartmut what he thinks of it. ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
It has to do with the backend resolving fontnames and expansions factors and so ... first I need to hear from Hartmut what he thinks of it.
No stress :) I'll wait silently -- just wanted to submit, what I thought to be, useful info. cheers, Martin
participants (2)
-
Hans Hagen
-
Martin Althoff