[CM] CMN - straight flag problem in sbcl?
Bill Sack
bsack23@gmail.com
Tue, 20 Mar 2007 17:58:42 -0400
------=_Part_138423_20812813.1174427922743
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hello cm people,
i'm a long-time cmn user and just started using it with sbcl 1.0.1 - is it
possible that the patch Anders suggested back in 2002 for displaying
slanted, straight flags doesn't work with sbcl? i ask because i looked at
the code in cmn2.lisp:
;; this version from AV 7-Oct-02
(rlineto score *straight-flag-dx* (if up-stem (-
*straight-flag-dy*) *straight-flag-dy*))
(rlineto score 0.0 *beam-width*)
(lineto score bx0 (+ y *beam-width*))
; (lineto score (+ bx0 .3) y)
; (lineto score (+ bx0 .3) (+ y .1))
; (lineto score bx0 (+ y .1))
(lineto score bx0 y)
(fill-in score))
#+(or gcl sbcl) (do ((i 0 (1+ i))
(y by0 (+ y incr)))
((>= i nflags))
etc.
... contains that conditional stuff about gcl and sbcl
anyway, this little example:
(in-package :cmn)
(setf *straight-flag-dy* .2)
(cmn (curvy-flags nil)(output-file "flag-test.eps")
(c5 e)
(rest e)
(c4 e)
(rest e))
shows flags that do not slant, but rather are displaced on the stem by a
small amount.
i'll comment out the sbcl stuff on my local copy and recompile just to see
what happens.
all best,
bill sack
------=_Part_138423_20812813.1174427922743
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hello cm people,<br><br>i'm a long-time cmn user and just started using it with sbcl 1.0.1 - is it possible that the patch Anders suggested back in 2002 for displaying slanted, straight flags doesn't work with sbcl? i ask because i looked at the code in
cmn2.lisp:<br><br><span> ;; this version from AV 7-Oct-02<br> (rlineto score *straight-flag-dx* (if up-stem (- *straight-flag-dy*) *straight-flag-dy*))<br> (rlineto score 0.0 *beam-width*)<br> (lineto score bx0 (+ y *beam-width*))
<br> <br>; (lineto score (+ bx0 .3) y)<br>; (lineto score (+ bx0 .3) (+ y .1))<br>; (lineto score bx0 (+ y .1))<br> <br> (lineto score bx0 y)<br> (fill-in score))
<br> #+(or gcl sbcl) (do ((i 0 (1+ i))<br> (y by0 (+ y incr)))<br> ((>= i nflags))<br>etc.<br><br>... contains that conditional stuff about gcl and sbcl<br><br>anyway, this little example:<br>
<br>(in-package :cmn)<br>(setf *straight-flag-dy* .2)<br>(cmn (curvy-flags nil)(output-file "flag-test.eps")<br>(c5 e)<br>(rest e)<br>(c4 e)<br>(rest e))<br><br>shows flags that do not slant, but rather are displaced on the stem by a small amount.
<br><br>i'll comment out the sbcl stuff on my local copy and recompile just to see what happens.<br><br>all best,<br>bill sack<br><br></span>
------=_Part_138423_20812813.1174427922743--