[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Postscript printer errors with rounded barlines?
From: |
David Kastrup |
Subject: |
Re: Postscript printer errors with rounded barlines? |
Date: |
Sat, 17 Mar 2012 09:26:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Todd Lewis <address@hidden> writes:
> The work-around is to change /draw_round_box in
> ps/music-drawing-routines.ps as indicated in prior emails to avoid
> rectstroke with a 0.0 linewidth, the behavior of which is device
> dependent.
"Prior Emails"? Anyway, starting with version 2.15.31, the patch
commit 4666869ad53760ead32eba6c5dc75e43c69f4c87
Author: David Kastrup <address@hidden>
Date: Mon Feb 27 23:29:24 2012 +0100
Issue 2328: Ledger lines in PNG output have white interior
Don't stroke rectangles with height or width 0 in draw_round_box
diff --git a/ps/music-drawing-routines.ps b/ps/music-drawing-routines.ps
index d7450e45..3e62f03 100644
--- a/ps/music-drawing-routines.ps
+++ b/ps/music-drawing-routines.ps
@@ -98,15 +98,20 @@ bind def
dup
0.0 gt {
setlinewidth % w h x y
- 0 setlinecap
- 1 setlinejoin
-
rmoveto % w h
- currentpoint % w h x1 y1
- 4 2 roll % x1 y1 w h
- 4 copy
- rectfill
- rectstroke
+ 2 copy 0 ne exch 0 ne and
+ {
+ 0 setlinecap
+ 1 setlinejoin
+ currentpoint % w h x1 y1
+ 4 2 roll % x1 y1 w h
+ 4 copy
+ rectfill
+ rectstroke
+ } {
+ 1 setlinecap
+ rlineto stroke
+ } ifelse
} {
pop % w h x y
rmoveto % w h
is in the repository. No "previous mail" was consulted, the issue is a
different one. So it would very much appear like a failure in
communication. When and in what context did you write your "previous
mail"?
--
David Kastrup