[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string-width error?
- To: info-mcl@digitool.com
- Subject: Re: string-width error?
- From: tar@ISI.EDU (Thomas A. Russ)
- Date: 8 Feb 95 15:44:26
- Organization: USC-ISI
- References: <199502081156.AA05284@xs1.xs4all.nl>
- Reply-to: tar@ISI.EDU
- Sender: owner-info-mcl@digitool.com
In article <...> rees+@pitt.edu (Ernest T Rees) writes:
> 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 it doesn't. As evidence consider the following cases I just tried:
(ccl::string-width "IIIIII" '("helvetica" 12 :plain)) => 18
(ccl::string-width "WWWWWW" '("helvetica" 12 :plain)) => 66
--
Thomas A. Russ, USC/Information Sciences Institute tar@isi.edu