Hi,
I've been reading around and I didn't knew it was that complicated.
It seems that there's no real solution that can be used for all browsers simultaneous !?
In the broncode of the link I mentioned before, I can see that they link to their fonts with this function/code :
Code:
function show_fonts()
{
url="/letternator/get_font.php?t="+escape(document.f1.text.value);
open(url,'fonts','width=700,height=600,top=150,left='+(screen.width/2-350)+',toolbar=no,location=no,scrollbars=yes');
}
To let it work in the most used browsers, I think I should do it like the following :
Code:
/* CSS 3 Font Embed */
@font-face {
font-family: "your FontName"
src: url( "/location_of_font/FontName.eot" ); /* IE */
src: local("real FontName"), url(" /location/of/font/FontFileName.ttf" ) format("truetype"); /* non-IE */
}
/* THEN use like you would any other font */
.yourFontName { font-family: "your FontName", verdana, helvetica, sans-serif;
}
Here I found it, but this page is not working in IE6, IE7 and IE8. It does work in FF 3.6.3 and Chrome 4.1.249.1045. In Safari I don't know.
Method : TTF ànd EOT
You can see the fonts I'am using in my static example-page.
Bookmarks