[NTG-context] redifining font sizes

Hans Hagen pragma at wxs.nl
Mon Jun 10 16:54:29 CEST 2013


On 6/9/2013 11:38 AM, Pablo Rodríguez wrote:
> Hi there,
>
> using the latest beta, I have tried to change the x font size from 0.8
> to 0.9, but it doesn't work.
>
> Here is a minimal sample:
>
>      \definefontsize[w]
>      \setupbodyfontenvironment[default][w=0.9, x=0.9]
>      \starttext
>      a {\tfx a} {\tfw a}
>      \stoptext
>
> Why isn't the x font size set to 0.9?

because the x sizes are defined for sizes

\definefontsize
   [w]

\setupbodyfontenvironment
   [12pt]
   [x=2pt]

\setupbodyfontenvironment
   [default]
   [w=0.2]

\starttext
     \ruledhbox{xxx {\tfx tfx} {\tx tx} {\txx txx} {\tfw tfw}}
\stoptext

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------


More information about the ntg-context mailing list