postscript - Postscript 中的宽虚线

标签 postscript

下面的代码绘制了一条宽虚线曲线。曲线太宽以至于虚线重叠。在黑色虚线重叠的某些地方,输出似乎是错误的。我已经在 Mac OS X 和 Ghostscript 的预览版中对此进行了测试。谁能解释一下?

%!
50 0 translate
500 dup scale
0.3 setlinewidth
[0.05 0.03] 0 setdash
0.1 0.1 moveto 0.2 2 0.6 -1.0 1 1 curveto
stroke
showpage

enter image description here

最佳答案

在我看来像是一个错误,Acrobat Distiller 生成了一个 PDF 文件,其中破折号段不显示 eofill 行为。 JAWS PostScript 解释器也没有展示这一点。据推测,Mac OS/X Preview 使用 Ghostscript 渲染 PostScript 文件以供预览。

关于postscript - Postscript 中的宽虚线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28078887/

相关文章:

pdf - 如何使用 `pdftk` 指定附件的描述?

c - 如何处理计算器溢出?

graphics - 贝塞尔曲线补丁在犹他茶壶中如何工作?

python - 尝试使用 matplotlib Latex 保存 postscript 时出错

postscript - 如何为 postscripts curveto 运算符生成控制点?

postscript - "currentpoint newpath moveto"程序的更好名称

fonts - 更改 PostScript 中的字母间距

svg - 如何使笔划宽度不受当前变换矩阵的影响

php - 使用 PHP + GhostScript 裁剪 PDF 奇偶页

fonts - PostScript Type 1、2 或 14 字体格式仍然存在吗?