String width

Jerry Daniels jerry at
Wed Dec 5 16:01:01 EST 2001

Thx, Geoff.

-----Original Message-----
From: use-revolution-admin at
[mailto:use-revolution-admin at] On Behalf Of Geoff Canyon
Sent: Wednesday, December 05, 2001 1:01 PM
To: use-revolution at
Subject: Re: String width

At 10:53 AM -0600 12/5/01, Jerry Daniels wrote:
>Does anyone know how to determine the width of a string (given it's 
>font, style and size) within an executable that is running on either a 
>Windows, Linux or Mac?
>I know there were plenty of XFCNs on the Mac to do this, but is there 
>anything on the Windows or Linux for this?

As is so often the case with Revolution, no external is required -- the
functionality is already there. Check out the formattedWidth function.

I love saying "It's built-in" :-)



use-revolution mailing list
use-revolution at

More information about the use-livecode mailing list