How do I measure character width?
Richard Gaskin
ambassador at fourthworld.com
Thu Mar 6 13:00:01 EST 2003
Victor Eijkhout wrote:
> I want to put some characters in a field, equally spaced horizontally
> and vertically. Meaning, my lines are "A B C D" etc, and want the
> vertical distance between lines the same as the horizontal distance
> between A and B. I'm using a monospaced font.
>
> I've found the textHeight parameter. Now how do I measure the width
> of a string such as "A " so that I can set the text height to that?
See the formattedWidth property.
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge 2.2: Publish any database on any site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the use-livecode
mailing list