Weird DRAW-ADJUSTED-STRING behaviour
Hi there, I've been trying to get DRAW-ADJUSTED-STRING function to work properly for some time now but it appears suprisingly common sense proof. I was thinking to move on and spend few minutes writing my own operational version but at this stage getting it to do its job is the principle of thing. (It thinks it won't) Have a look at this bit of code (LW Pro 5.0.2 on W7 64): (let ((pane (capi:contain (make-instance 'capi:output-pane)))) (gp:set-graphics-port-coordinates pane :left -5 :bottom -5 :top 105 :right 105) (gp:draw-line pane 50 0 50 100 :dashed t) (dolist (adjustment '(:left :centre :right)) (gp:draw-adjusted-string pane "X" 50 50 adjustment))) It is supposed to draw a dashed vertical line in the middle of an output pane and then put three Xs: 1) One to the left of the line. 2) One with the line going through the middle of the X. 3) One to the right of the line. However, something not exactly expected shows up (see the image attached.) The one that is supposed to be drawn to the left works fine, the one that is supposed to be in the centre is drawn to the right of the line, and the one on the right is way too right. Has anyone on the list dealt with it at some stage in the past?