swfx.org flash string width calculator v2.5.3
about
This tool generates ActionScript files from fonts embedded in swf or swt files. The functions in the ActionScript files can then be used to calculate the width (in pixels) of a string in that font at a given point size.

Version 2.5.3 released 7 December 2002.

changes
v2.5.3: Bug fixes relating to the encoding of the zip file that was distributed.
v2.5: Changed ActionScript to create functions in the String object as well as the traditional functions.
v2.1.2: Fixed bug in charPositions function, naming the wrong font (thanks to Shakib).
v2.1.1: Instructions for obtaining kerning information in the string width calculations.
v2.1: Includes requested feature to output x positions of each character in the string using new function charPositions<font-name>.
v2.0: Improved documentation and usability. Now saves ActionScripts into same directory as the flash movie. v1.0: First release.

documentation
Documentation is included in the zip file downloaded as an HTML file.

license
The string width calculator is released as Freeware.

 
installation
This application is written in Java. There are three versions; a GUI version, a command-line version, and a MacOS 9 version. The MacOS 9 version requires MRJ 2.2 from http://www.apple.com/java/. MacOS X can use the GUI or command-line versions.

You must have the JRE or JDK from www.sun.com installed to use this application. You can download the JRE and JDK from http://java.sun.com/j2se/

You can test whether or not you have JRE or JDK installed by downloading the GUI version, unzipping it, and double-clicking the jar file. If it launches an application then you are okay, if not install the JRE as above.

If you have JRE or JDK installed but double-clicking the jar doesn't work. Then, from a command prompt in the same directory as the jar, type:
java -jar stringwidthcalculator-gui.jar

Please email me if you have any problems using this application.


optional registration
Please register to receive update emails from swfx. Registration is not required.
 
download
Email Address:

Approx: 75KB

karl@swfx.org