View Full Version : loading fonts

Aug 6th, 2009, 04:50 PM
Hi, is there a way to use abnormal fonts on your site and the user has no need to have them installed on there PC?

Aug 6th, 2009, 05:02 PM
The short answer: No.

The long answer: It IS possible--the only method (http://www.mikeindustries.com/blog/archive/2004/08/sifr) I know is called sIFR (http://en.wikipedia.org/wiki/Scalable_Inman_Flash_Replacement) and involves using Flash and JavaScript.

On a related note, there may be a relatively web-safe but still attractive alternative to the font you'd like to use. Check out these pages:


Aug 6th, 2009, 05:21 PM
nice answer, your a star.

Aug 6th, 2009, 07:30 PM
Oohh matt you're behind the times! =P

Currently there's Cufón (http://cufon.shoqolate.com/generate/), which at the moment is superior to Typeface.js (http://typeface.neocracy.org/).

Aug 6th, 2009, 07:46 PM
Note that there are license and copyright issues with Cufón that you have to deal with. Specifically, the advantage of sIFR is that the font is stored inside the SWF file and can’t be easily retreived by others while with Cufón the font file is stored directly on the server and the path can be seen in the JS file, and therefore the font could be illegally downloaded/copied. So be aware which font you’re going to use and look if you are allowed to do so (when using Cufón). In the worst case the font vendor could get you for illegally distributing a licensed font.

Just for the sake of correctness.

Aug 6th, 2009, 07:56 PM
I thought there was copy protection in Cufón to lock it into a domain.

Aug 6th, 2009, 10:04 PM
I thought there was copy protection in Cufón to lock it into a domain.

There is but that isn't what Stephan was saying. He was saying that because the font path is visible in the js file the user can simply navigate to the js file and download the font for other uses. Unless the fonts on your server are generated by cufon then I don't see a way around it.

Aug 6th, 2009, 10:10 PM
Yes, but my point was that the domain locking prevents this.

Aug 6th, 2009, 10:19 PM
OK, it’s been a while since I looked at Cufón and I don’t remember if the domain locking was always present. I’ve looked a little deeper into this now. It seems like the actual font file isn’t stored but it’s converted into a SVG, so you only see coordinates or something like this. Therefore you’d only need to download the font specification JS file and use it on your site. I don’t know how the domain locking works, though, so it might even be possible this is fairly secure. But as far as I know you could still reverse engineer a JS file more easily than an SWF file.