A place where the Joyent community can gather, help each other out, and stay informed.
You are not logged in.
Here's how I control the letter spacing between characters using sIFR v2 and Flash v8.
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 (currently line 119 of "index.html") 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.
Offline
See letter-spacing under Styling
The ".sIFR-root" class that's described is the one you use for styling in sifr-config.js.
Offline
Sweet, I figured it out.
For anyone else looking for a solution to this, here is an example using the sifr-config.js file:
sIFR.replace(angelina, {
selector: 'h1' ,css: [ '.sIFR-root { font-weight: bold; letter-spacing: 2; color:#888888; z-index:0; position:absolute }' ,'a { color:#0099ff }' ,'a:link { color: #0099ff; }' ,'a:hover { color: #0099ff; }' ] , wmode: 'transparent'Offline
Aye. The z-index and position won't have any effect, by the way.
Offline
Hey Guys -
When I compile the swf into Flash 8, the SWF looses the ability to wrap. It basically shrinks the text to make it fit on the one line.
Any ideas? Been looking at this for days wondering what the problem could be, and so far, no luck.
--Adam
Offline
If you're going after Flash 8, sIFR 3 would be a better fit.
Offline
Hi, listen, this is a fantastic tool!
Well, I need to use FLASH 8 also because my font (Glypha) needs "Anti-alias for readability", if not it's very difficult to read.
The problem is that when I export the movie ant test it, the font-size is reduced and the whole content of H1 is displayed in just 1 line. In other words, it's not growing-down. As you might imagine I have some H1 very large, and therefore the font-size is reduced to the minimum (not even 9px!)
What can I do?
Regards,
Francisco
Offline
You should be using sIFR 3
Offline
Hi,
I'm having trouble getting the letterSpacing attribute to take. I've followed the instructions, but still no dice:
http://windows.pedrera.com/clients/ncc/visitlanding.aspx
I'm trying to apply letter spaceing to the H2 and H3 tags that the top of the page (visitor information & exhibit experience).
Can anybody see what I am doing wrong?
Thanks,
John
Offline
You might want to try with sIFR 3
Offline
Nicely done. Works perfect!
Offline