HokieTracks Posted April 7, 2009 Share Posted April 7, 2009 I know that you have to be careful when defining font-family because not every website user has the same font on their computer. So is there a way to define the font style and "link" it to the font file on your website? Link to comment https://forums.phpfreaks.com/topic/153081-defining-font-types/ Share on other sites More sharing options...
xtopolis Posted April 8, 2009 Share Posted April 8, 2009 There is, but it's not fully supported last I remember. http://www.w3.org/TR/CSS2/fonts.html#font-descriptions @font-face { font-family: "Robson Celtic"; src: url("http://site/fonts/rob-celt") } Link to comment https://forums.phpfreaks.com/topic/153081-defining-font-types/#findComment-804130 Share on other sites More sharing options...
HokieTracks Posted April 8, 2009 Author Share Posted April 8, 2009 So if it's not fully supported does that mean it only works in certain situations? Link to comment https://forums.phpfreaks.com/topic/153081-defining-font-types/#findComment-804143 Share on other sites More sharing options...
xtopolis Posted April 8, 2009 Share Posted April 8, 2009 It means that between FF,IE,Chrome,Opera,Safari, it may not work in all of the browsers, nor all of the versions of those browsers. I was looking for a color coded graph regarding the compatibility, but I think the specifics are still being worked out [ http://www.w3.org/Fonts/Misc/eot-report-2008 ]. You can test this by creating a simple page and testing it either by downloading the browsers yourself, or making use of a service such as BrowserShots[ http://browsershots.org/ ] Basically, "I wouldn't rely on it, yet." Link to comment https://forums.phpfreaks.com/topic/153081-defining-font-types/#findComment-804151 Share on other sites More sharing options...
HokieTracks Posted April 8, 2009 Author Share Posted April 8, 2009 Ok, yeah it sounds like it's better just to use a basic font that everyone has. But thanks for the info and that browser shots link it looks really usefull. Link to comment https://forums.phpfreaks.com/topic/153081-defining-font-types/#findComment-804155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.