Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

sIFR, ever used it?

Discussion in 'Website Design Forum:' started by Xenonsoft, Jan 5, 2009.

  1. Xenonsoft

    Xenonsoft Active Member

  2. Helen

    Helen Member

    Yes I have heard of it.

    Personally, I do think there should be more of a choice of "web-safe fonts". But I do think it could become abused until all the text on a site becomes completely unreadable and inaccessible.

    I have also heard it slows down page load.

    I suppose if it is just used for headings, then ok. But I can't see myself using it. Sounds like more trouble than it's worth.
     
  3. Xenonsoft

    Xenonsoft Active Member

    Agreed, I'm not a fan of it yet. The idea behind it seems good, but it's not for me.
     
  4. minucocat

    minucocat New Member

    sIFR is quite good. I use it on our website.

    why is good?

    You can display the text much pretty.

    If you don't have flash, you still can see the text.

    ne sIFR can allow you to use this effect for links.

    The text are searchable and you can selected as well.

    Why is not good?

    Can't use a lot on the page, heading a fine, not content.

    Take time use to test and learn how to use it.



    You can download the different sifr3 versions from here:

    Index of /sifr3/nightlies


    One thing, don't download the latest few versions as I realise some of the new versions don't work for all the browsers.

    sIFR takes a bit of time to learn and use, but I think it's worth to try. Remember one thing, use it for headers not the content, as it will take a bit more time to load than normal text.

    This website has some info you can read:

    This is How You Get sIFR to Work | Design Intellection
     
    Last edited: Jan 21, 2009
  5. Xenonsoft

    Xenonsoft Active Member

    Hey Minuco. Cheers for your input. I'm still not a massive fan, but can see that for some it has it's uses.

    I like your site by the way, very nice, did you design it yourself?
     
  6. minucocat

    minucocat New Member


    Thanks, then. I am front end developer. The design is by our designer. I only implement the design.
     
  7. Xenonsoft

    Xenonsoft Active Member

    That's cool minu. Nice design that.
     
  8. Pete

    Pete Member

    We actually use sifr on pretty much every site we do nowadays, I even use it on the sites I do in my freelance time. The older versions were quite hard to configure because the size of the font was dictated by a combination of line height and some other stuff but all that has been sorted now. Version 3 is very nice as everything is configured using simple CSS in a separate config file.

    Anyways, if the user doesn't have flash or javascript installed, you can still specify a standard font in your CSS. It's pretty good for tying the look of websites in with printed material. I can understand why you guys are skeptical but give it a shot the next time you get a chance and you'll fall in love. Remember to stick to using it for headings though otherwise you'll affect the sites performance.
     
  9. Helen

    Helen Member

    Must admit, I am now tempted to give it a go on my site, but I'm a total newb when it comes to javascript and the likes.

    If you lot who have used it have any pointers, I'm all ears (well eyes actually) :icon_biggrin:
     
  10. Pete

    Pete Member

    I've put together a little demo because there's not too much help on the Sifr site, you can see it all working here.

    First of all, download the zip file:
    http://www.petemorley-portfolio.co.uk/s/sifr.zip

    Once you open that up, you'll see three folders and an index file, open up the flash folder, then open up Sifr.fla in flash.

    Setting your font
    Once you have the Sifr.fla file open, you'll see a blank text box on your flash stage. Double click this and you're greeted with "Bold Italic Normal". highlight this text and set it to the font you want to use. Now, double click the grey area around the flash document so the text disappears again. Go to file > Export movie. I've chosen to use Helvetica Neue so I've saved the movie in the flash folder as hel.swf.

    Configuring Sifr
    Next you'll need to open up the config file in the js folder, this is the little script that tells your page when to replace a selector with your chosen font.

    Here's what each line in the config means...

    Here, we're telling Sifr the flash/font file and path that relates to the name helNeu.

    var helNeu = {
    src: 'flash/hel.swf'
    };


    This bit of code tells Sifr that I want to replace my H1 tags with the helNu font and what CSS to apply...

    Sifr.activate(helNeu); // From revision 209 and onwards

    Sifr.replace(helNeu, {
    selector: 'h1',
    css: [
    '.Sifr-root{ font-size:26px; color:#009ee0; text-align: left; }'
    ],
    wmode: 'transparent'
    });


    Get it all saved up, you only need to call the two CSS files and the two Javascript files that I've referenced in the head of index.html, but you will have to put everything up on your server because a few of the files in the flash folder are still needed in the background.

    That's it really, it takes a bit of playing with. You aren't restricted to headings, for example if I had a H1 in a div on the right of my website I could tell Sifr that I just wanted to style the selector: '#right h1'.

    Hope this makes sense. You can call as many font files as you like, simply repeat the line of code that's calling Helvetica as many times as you need to, then reference your new font. It's also possible to style links, while keeping them clickable. Be careful of large font files such as Bleeding Cowboys or Trashed, they'll create a large .swf file that takes a while to call :icon_biggrin:
     
  11. Stationery Direct

    Stationery Direct Administrator Staff Member

    Great explanation Pete, thanks for taking the time :icon_thumbup:
     
  12. Pete

    Pete Member

    No worries, got in early this morning.
     
  13. Helen

    Helen Member

    Wow, thanks....will have a good look at that tonight when I have more time :)
     
  14. IS-James

    IS-James Member

    I've used sIFR on quite a few sites and it can make a big difference to the look, as well as being a great way to convince designers not to try and make images for headings!

    One thing to watch out for is overusing it though. Each sIFR replaced element on the page will add time to the page load as the HTML is rewritten and the flash is loaded. It is fine for a couple of headings per page but I wouldn't use it more than 3 or 4 times per page or the page load becomes noticably slower.

    As an example I used it on a site, just for headings and subheadings not considering that on the comments pages there could be 20 - 30 sub headings all being replaced at once.

    The other thing is, remember to calcualate ratios for your sIFR elements it is an easy step to miss or ignore but if you don't calculate the ratios it tends to make the page shift all over the place as the elements are loaded.
     

Share This Page