[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Postscript printer errors with rounded barlines?
From: |
Karl Hammar |
Subject: |
Re: Postscript printer errors with rounded barlines? |
Date: |
Thu, 21 Jul 2011 13:11:21 +0200 (CEST) |
Han-Wen Nienhuys:
...
> Werner, can you have a look at http://codereview.appspot.com/4819041 ?
/draw_round_box % width height x y blot
{
- setlinewidth % w h x y
- 0 setlinecap
- 1 setlinejoin
+ dup
+ 0.0 gt {
+ setlinewidth % w h x y
+ 0 setlinecap
+ 1 setlinejoin
+
There is no blot on the stack below (as indicated by the comment),
it was swallowed by setlinewidth.
+ rmoveto % b w h
+ currentpoint % b w h x1 y1
+ 4 2 roll % b x1 y1 w h
+ 4 copy
+ rectfill
+ rectstroke
+ } {
+ pop % w h x y
+ rmoveto % w h
+ currentpoint % w h x1 y1
+ 4 2 roll % x1 y1 w h
+ rectfill
+ } ifelse
+} bind def
You don't seem to use this, why defining it?
+/draw_box % width height x y
+{
rmoveto % w h
currentpoint % w h x1 y1
4 2 roll % x1 y1 w h
4 copy
rectfill
- rectstroke
} bind def
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Postscript printer errors with rounded barlines?, Han-Wen Nienhuys, 2011/07/19
- Re: Postscript printer errors with rounded barlines?, Francisco Vila, 2011/07/19
- Re: Postscript printer errors with rounded barlines?, Werner LEMBERG, 2011/07/20
- Re: Postscript printer errors with rounded barlines?, Han-Wen Nienhuys, 2011/07/20
- Re: Postscript printer errors with rounded barlines?, Han-Wen Nienhuys, 2011/07/20
- Re: Postscript printer errors with rounded barlines?, Werner LEMBERG, 2011/07/21
- Re: Postscript printer errors with rounded barlines?,
Karl Hammar <=
- Re: Postscript printer errors with rounded barlines?, Han-Wen Nienhuys, 2011/07/21
- Re: Postscript printer errors with rounded barlines?, Karl Hammar, 2011/07/21
- Re: Postscript printer errors with rounded barlines?, Han-Wen Nienhuys, 2011/07/21
- Re: Postscript printer errors with rounded barlines?, Han-Wen Nienhuys, 2011/07/21
- Re: Postscript printer errors with rounded barlines?, Graham Percival, 2011/07/21
- Re: Postscript printer errors with rounded barlines?, Francisco Vila, 2011/07/22
- Re: Postscript printer errors with rounded barlines?, Karl Hammar, 2011/07/22
Re: Postscript printer errors with rounded barlines?, Jan Warchoł, 2011/07/23