Dodona gives you answers

How can I adjust letter spacing with sIFR 2?

leave a comment »

I know, sIFR 3 allows you to style your text, including letterspacing. But I had to update an older website using sIFR 2.0.7 and also had to adjust the letter spacing. So I wondered; is there a way to do this without upgrading to sIFR 3? Yes there is:

  • First, edit “dont_customize_me.as” and place the following code at line 92:
    if (letterSpacing != null) fmt.letterSpacing = Number(letterSpacing);
  • Next, edit “sifr.js” on line 7:
    Where it says “var a=6;” change the 6 to an 8. This ensures that you’re detecting for Flash v8.
  • Where you make your replacement calls add the following to sFlashVars:
    sFlashVars:"textalign=center&offsetTop=6&letterSpacing=3"
  • Lastly, be sure to save your font SWFs as Flash 8, with Actionscript 2.0 enabled using the “Publish Settings…” menu.

But, this only works for titles of 1 line long. Longer titles won’t wrap anymore but will be scaled down instead. To fix this I guess you still have to upgrade to sIFR 3.

Link: discuss.joyent.com/viewtopic.php?pid=102296
Status: Tested it, works, line wrapping is broken.

Written by lutsen

April 21, 2010 at 2:44 pm

Posted in Actionscript, Web

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: