[NTG-context] new beta

Hans Hagen pragma at wxs.nl
Sat Jun 13 10:00:57 CEST 2015


Hi,

I uploaded a beta. The most significant (visible) change is in the way 
mp handles outlines. Here are some examples:

% outlinetext   (text) transformations ;
% outlinetext.d (text) (draw options) transformations ;
% outlinetext.f (text) (fill options) transformations ;
% outlinetext.b (text) (draw options) (fill options) transformations ;
% outlinetext.r (text) (fill options) (draw options) transformations ;

\starttext

\startMPpage

     draw outlinetext.b
         ("\framed[align=normal]{\input{tufte}}")
         (withcolor .5white)
         (withcolor red withpen pencircle scaled 1/10)
         xsized 10cm ;

\stopMPpage

\startMPpage

     draw outlinetext.r
         ("\framed[align=normal]{\input{tufte}}")
         (withcolor red withpen pencircle scaled 1/10)
         (withcolor .5white)
         xsized 10cm ;

\stopMPpage

\startMPpage

     draw outlinetext.d
         ("\framed[align=normal]{\input{tufte}}")
         (withcolor .5white)
         xsized 10cm ;

\stopMPpage

\startMPpage

     picture p ; p := outlinetext.p("PX") ;

     for i within p :
         draw i withcolor red withpen pencircle scaled 1/10 ;
     endfor ;

\stopMPpage

\stoptext

If you say (will b edefault when no complaints):

\startMPdefinitions
     let graphictext = new_graphictext ;
\stopMPdefinitions

the graphictext macro will also use this method.

If you want a nice view on a font you can say:

\useMPlibrary[outlines]

\showshape[character=a,alternative=page]

\stoptext

or for a whole font:

\setupbodyfont[pagella]
\showshape[character=all,alternative=page]

or

\definedfont[almfixed]
\showshape[character=all,alternative=page]

Another change is a much faster reload of fonts database but as that 
doesn't happen often it might go unnoticed.

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


More information about the ntg-context mailing list