[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-width error?



>All string-width really does is multiply the length of the string by
>the char width.  You can do this yourself rather than using string-width
>repeatedly.  (If you are using a variable-width font, either approach will
>give increasingly erroneous results and the length of the string increases.)
No, that is not correct

? (string-width (make-string 5 :initial-element #\i) '("geneva" 10 :Plain))
20
? (string-width (make-string 5 :initial-element #\M) '("geneva" 10 :Plain))
45

Karsten