summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/testdata/alt-rule.pro
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipsk/testdata/alt-rule.pro')
-rw-r--r--Build/source/texk/dvipsk/testdata/alt-rule.pro17
1 files changed, 17 insertions, 0 deletions
diff --git a/Build/source/texk/dvipsk/testdata/alt-rule.pro b/Build/source/texk/dvipsk/testdata/alt-rule.pro
new file mode 100644
index 00000000000..c7fb9443923
--- /dev/null
+++ b/Build/source/texk/dvipsk/testdata/alt-rule.pro
@@ -0,0 +1,17 @@
+%!
+% Patch by TVZ
+% Makes dvips files draw rules with stroke rather than fill.
+% Makes narrow rules more predictable at low resolutions
+% after distilling to PDF.
+% May have unknown consequences for very thick rules.
+% Tested only with dvips 5.85(k).
+TeXDict begin
+/QV {
+ gsave newpath /ruleY X /ruleX X
+ Rx Ry gt
+ { ruleX ruleY Ry 2 div sub moveto Rx 0 rlineto Ry }
+ { ruleX Rx 2 div add ruleY moveto 0 Ry neg rlineto Rx }
+ ifelse
+ setlinewidth 0 setlinecap stroke grestore
+} bind def
+end