[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PostScript circle printed with unwanted line
From: |
ArnoldTheresius |
Subject: |
Re: PostScript circle printed with unwanted line |
Date: |
Tue, 5 May 2015 05:42:19 -0700 (MST) |
pls wrote
> ...
> This line doesn’t show when I use Ghostscript 9.14 to interpret the
> following file (I obviously had to change some values because PostScript
> normally uses units of "points" for placing graphics on the page (in LP
> the unit seems to be millimeters) and because the zero coordinates in
> PostScript are in the bottom left corner of the page):
>
> %!PS
>
> /doACircle
> { 0 0 54 0 360 arc stroke } def
>
> % doACircle
>
> 300 425 translate doACircle
>
> showpage
>
>
> So I would think this is a bug.
>
> hth
> patrick
> _______________________________________________
> bug-lilypond mailing list
> bug-lilypond@
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>
>
> postscript-circle.pdf (17K)
> <http://lilypond.1069038.n5.nabble.com/attachment/175881/0/postscript-circle.pdf>
But, if there is any other graphic command (with a moveto) before your
doACircle, you will find this line in Ghostscript, too:
%!PS
200 500 moveto
/Helvetica findfont 10 scalefont setfont
(doACircle examples) show
/doACircle
{ 0 0 54 0 360 arc stroke } def
300 425 translate doACircle
150 0 translate 0 0 moveto doACircle
showpage
So, I think, it would be an enhancement request to invalidate the 'current
point' whenever
a \postscript markup starts - but I do not have the postscript command in
mind which
will do this.
Instead you may try this postscript procedure definition:
/drawACircle % x_origin y_origin radius
{ 3 copy pop moveto
dup 0 rmoveto
0 360 arc stroke
} def
ArnoldTheresius
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/PostScript-circle-printed-with-unwanted-line-tp175881p176122.html
Sent from the Bugs mailing list archive at Nabble.com.
- PostScript circle printed with unwanted line, Patrick L. Schmidt, 2015/05/02
- Re: PostScript circle printed with unwanted line,
ArnoldTheresius <=
- Re: PostScript circle printed with unwanted line, pls, 2015/05/05
- Re: PostScript circle printed with unwanted line, ArnoldTheresius, 2015/05/06
- Re: PostScript circle printed with unwanted line, pls, 2015/05/06
- Re: PostScript circle printed with unwanted line, David Kastrup, 2015/05/06
- Re: PostScript circle printed with unwanted line, James, 2015/05/06
- Re: PostScript circle printed with unwanted line, ArnoldTheresius, 2015/05/06
- Re: PostScript circle printed with unwanted line, James Lowe, 2015/05/11