On 12/27/2014 12:16 PM, j. van den hoff wrote:
On Sat, 27 Dec 2014 10:40:30 +0100, Pablo Rodriguez <oi...@gmx.es> wrote:

On 12/26/2014 11:32 PM, j. van den hoff wrote:
[...]
in this example (and with this font) the problem is only occuring when
toggling between pages 6/7 or 7/8 (at sufficient zoom it's easy to see),
i.e.the header is shifted downward on page 7. in other docs with
different
fonts it happens across multiple pages. my guess would be it has to
do with the digit heights in the different fonts and the fact that the
page numbers are much larger than the heading, but that's only a guess.

can someone confirm the problem?

Hi Jörg,

this sample shows the issue without zooming:

thanks for confirming this. @devs: can this be considered "misbehaviour"
(not to call it a bug ;-)) or is it somehow unavoidable?

it's not a bug at all .. you just get what you ask for

\showframe \showglyphs

your header is too small so what you want only works if the heights of all characters are the same which is not the case here

solutions:

- use a proper height for the header
- package the header text in a box and set the height of that box


    \setuppapersize[A8]
    \setupheader      [style=\itx\ss]
    \setupheadertexts [section]
    \setuppagenumbering[location={header,margin}, style=\bfd]
    \starttext
    \dorecurse{80}{\section{Introduction}
    bla\page[yes]}
    \stoptext

When the glyph 7 is involved in page number, baseline is a bit lower. As
you wrote, I guess this is related with the glyph metrics.

yes. this seems to be supported by the fact that it happens differently
(usually more frequently) with other fonts.

joerg


Just in case it helps,


Pablo




--

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to