...

View Full Version : Fonts and CSS



krs1
03-12-2006, 11:22 PM
Hey;

Is it possible to use a font that the user does not have installed by giving the browser the url of the font?

ie something like:


.Whatever {
font-family: "Good Times";
font-src: url("http://whatever.ca/goodtime.ttf");
}


Thanks.

rmedek
03-12-2006, 11:37 PM
Nope, at least not yet. The closest thing to this would be to use sifr or something similiar:

http://www.mikeindustries.com/sifr/

slushy77
03-12-2006, 11:57 PM
Better yet would be to set the font family to include alternatives and then the font type, this way if the user doesnt have a particular font, a similar effect can be achieved (remember to test). And your not depending on the user having 3rd party products installed.
e.g


font-family:Arial, Verdana, sans-serif;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum