* Serious problems with kerning in setlayerframed
@ 2012-10-23 19:01 Mojca Miklavec
2012-10-23 19:17 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Mojca Miklavec @ 2012-10-23 19:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
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
[-- Attachment #2: kerning.pdf --]
[-- Type: application/pdf, Size: 6283 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Serious problems with kerning in setlayerframed
2012-10-23 19:01 Serious problems with kerning in setlayerframed Mojca Miklavec
@ 2012-10-23 19:17 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2012-10-23 19:17 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Mojca Miklavec
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-23 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-23 19:01 Serious problems with kerning in setlayerframed Mojca Miklavec
2012-10-23 19:17 ` Hans Hagen
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).