[dev-context] metafun & textext problems in mkiv

Hans Hagen pragma at wxs.nl
Sat Aug 30 00:36:21 CEST 2008


Mojca Miklavec wrote:
> Hello Hans,
> 
> this fails in mkiv:
> 
> \setupcolors[state=start]
> \starttext
> \startMPpage
> picture p;
> p := textext("abc");
> draw p withcolor red;
> draw p shifted (3cm,0) withcolor blue;
> \stopMPpage
> \stoptext

this is because text is handled at the tex end and color happens with 
attributes; i can hack a solution but i'm still wondering if it is 
really needed (will make code dirty)

textext("\red abc");

works

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list