From b29fdf77e54a9344ce0284a053ee4cd98727dd8a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 25 Feb 2011 17:27:46 +0000 Subject: avoid nan result with eepic lines git-svn-id: svn://tug.org/texlive/trunk@21520 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/testdata/alt-rule.pro | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Build/source/texk/dvipsk/testdata/alt-rule.pro (limited to 'Build/source/texk/dvipsk/testdata/alt-rule.pro') 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 -- cgit v1.2.3