Fixed Width Fonts #2

Scott Rossi scott at tactilemedia.com
Sun Jan 27 18:54:17 EST 2008


Recently, Mark Swindell wrote:

> Is there for Rev to determine which system fonts are of fixed width?
> If not directly, then indirectly?  Comparing widths of "i" and "w" on
> a font by font basis?  How might this work?

Tried your idea using the following:  Created two 18pt text fields, put "W"
into fld 1, "I" into field 2, ran the following function:

  return (formattedWidth of fld 1 = formattedWidth of fld 2)

Results were false with Rev's default font, true with Monaco and Apple Mono
(OS X).

Seems like a valid direction.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design





More information about the use-livecode mailing list