galengidman — 2010-02-01T17:55:28-05:00 — #1
I'm not sure if I'm putting this in the correct forum, mainly because I don't really know how this is done. I think that I've heard that you can embed fonts in CSS, so we'll just give this a shot, and if I totally misplaced this a Mod can move it. :lol:
So.... how do you do this? Does it work in all browsers? I really know nothing about it except that it can be done. How does this work?
ralphm — 2010-02-01T18:43:32-05:00 — #2
This is done with @font-face in CSS. There are several issues with it, but with a few workarounds you basically can do it in all (or most) browsers.
Basically, the font files are included with the website and get downloaded with the web page. So there are big copyright issues involved. The font foundries are only just beginning to come to terms with this.
Here are some useful links:
There are some nice collections of fonts that are free to use, and the code is all set up to work with the various browser conditions:
Another option is to pay a licence fee to use fonts this way:
Hope that helps!
You could also use sIFR instead, in which you place the font (mainly headings) in a Flash file. (With Flash off, the default font text can be shown instead):