I'm trying to make a nice SVG out of Knuth's Dangerous Bend symbol based on his own code, for which the obvious tool to use is MetaPost. However, I'd prefer to still be able to process the file with Metafont so I can more easily see exactly what differences I might introduce in the shape. Since this seems like it would benefit from
cutdraw, my current plan is for my
dbend.mf to work with both Metafont's
plain.mf base and MetaPost's
I already have code that works fine in with both bases, but I want to do a couple of extra things if running under MetaPost, like colored fills and redefining
pt as equal to
Is there a nice way to determine whether your code is running under Metafont or MetaPost, or do I just have to use e.g.