2
我开发了一个功能,使在后记一个简单的复选框,但仍似乎无法工作。 有产生矩形没有问题,但似乎线路(使复选框的经典X)的写作过程中抛出一个异常。nocurrentpoint例外的PostScript
/nocurrentpoint in --nocurrentpoint--
这是我的代码。
/doMarkedCheckBox {
0.1 setlinewidth
currentpoint
/yIniChk exch def
/xIniChk exch def
xIniChk
yIniChk
DimChars
DimChars
rectstroke
xIniChk DimChars add yIniChk DimChars add lineto
0 DimChars 0 sub moveto
yIniChk DimChars add xIniChk lineto
stroke
} bind def
有人可以解释如何正确地做到这一点吗? 在此先感谢。
这是一个过程定义,你在哪里调用过程?当前点(或任何其他设置当前点的命令)执行'moveto'时,'currentpoint'仅有效。在你自己设置一个之前没有现在的问题。 (翻译或其他转换不会设置当前点) –