On 2013-08-28, at 1:40 PM, "Meer, H. van der"
I am using textext to draw text from inside a metapost program. The drawoptions macro is used by metapost to set drawing options such as color. As I understand, the textext call is handled by the tex-side of the metapost-context system, initiated of course from the metapost side. My impression is that this occurs asynchronously, judging by the problem I encountered.
On the metapost side I have:
drawoptions(withcolor blue); pic := textext(labeltext); drawoptions(); % the pic is output later
Can you posts complete minimal example? Drawoptions are only taken into consideration when the picture is drawn, and textext does not draw the picture. So, it is not surprising that when you actually draw the picture, the current draw options are used. Aditya