Background color of sometxt ignored
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
Hi, In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I used to use this trick to unfill the background while drawing a label, but it no longer works (It used to work a month ago). Bug or feature? \unprotected\definetextext[parbox] {\framed [ frame=off, width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]} \starttext \startMPcode draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPcode \stoptext Aditya
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Sat, 30 Aug 2008, Aditya Mahajan wrote:
Hi,
In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I used to use this trick to unfill the background while drawing a label, but it no longer works (It used to work a month ago).
Bug or feature?
It works if I add \setupcolors[state=start]
\unprotected\definetextext[parbox] {\framed [ frame=off, width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]}
\starttext
\startMPcode draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPcode
\stoptext
Aditya
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Aditya Mahajan wrote:
Hi,
In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I used to use this trick to unfill the background while drawing a label, but it no longer works (It used to work a month ago).
Bug or feature?
\unprotected\definetextext[parbox] {\framed [ frame=off, width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]}
\starttext
\startMPcode draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPcode
\stoptext
well, white is not the best test example \unprotected\definetextext[parbox] {\framed [ width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]} \startMPpage[background=color,backgroundcolor=red] draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPpage works ok here ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Aditya Mahajan
-
Hans Hagen