On 23-10-2012 21:01, Mojca Miklavec wrote:
Hello,
I have some serious issues with kerning in MKIV, so I'll probably have to end up with MKII after all. I wonder what is going on in the following example where framed completely distorts the kerning.
\setuppagenumbering [location=] \definepapersize [poster] [width=36cm,height=55cm]
\starttext
\setupbackgrounds[page][background=paper]
\definelayer[paper] [width=\paperwidth,height=\paperheight]
\startbuffer[title] \definedfont[Bold at 38pt] Kerning Screw Up \stopbuffer
\setlayerframed[paper] [preset=lefttop,hoffset=.05\paperwidth,voffset=1cm] [width=0.9\paperwidth,align=middle,offset=4mm] {\getbuffer[title]}
\definedfont[Bold at 38pt] No Kerning Screw Up \stoptext
Mojca
When you change the font inside, the par happens after a group and as a consequence the spacing is the one outside the framed. So, in case you want to set a font (normally only needed with a larger one) this way: \starttext \setupbackgrounds[page][background=paper] \definelayer[paper] [width=\paperwidth,height=\paperheight] \definefont[MyFont][Bold*default at 38pt] \startbuffer[title] Kerning Screw Up \stopbuffer \setlayerframed[paper] [preset=lefttop,hoffset=.05\paperwidth,voffset=1cm] [width=0.9\paperwidth,align=middle,foregroundstyle=\MyFont,strut=no] {\getbuffer[title]} \definedfont[Bold*default at 38pt] No Kerning Screw Up \stoptext Also, if you omit *default your inter character kerning will not show up either. (lucky me framed is pretty stable and predictable) 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 -----------------------------------------------------------------