13 Nov 2007 Script Editor Fonts

I filed Radar bug #5592382 a few days ago…

Summary

In Script Editor 2.2, the whitespace between most items (thought not inside comments or application keywords) is displayed in 12pt Helvetica, regardless of the user’s formatting preferences. This can cause the spacing between items to be smaller than expected, making the text harder to read.

(The same behavior is exhibited in Xcode or when testing an OSAScriptView in Interface Builder 3.0.)

Steps to Reproduce

  1. Open Script Editor.
  2. Open Formatting pane of Script Editor’s preferences.
  3. Change the font of each category to Andale Mono. (Any font expect Helvetica could be substituted here. However, I believe the spacing is more noticeable with a fixed width font.)
  4. Quit and reopen Script Editor.
  5. Enter the following script into Script Editor:

    tell me to choose folder

  6. Compile the script.

The results should be visually noticeable. To confirm:

  1. Reveal the font panel by choosing Show Fonts from the Font menu.
  2. Select the space character between tell and me. The font panel should indicate 12pt Helvetica.

Screenshot

Tags: Mac OS X, Leopard