Ich wollte für mein Projekt mal austesten ob es machbar ist eine Schriftart vom Server zu nehmen, ohne das man diese lokal auf dem Rechner hat.
Ich hab mir dazu mit dem WEFT von MS aus 2 Schriftarten die nicht standartmässig installiert sind .eot Dateien erstellt.
PHP Datei und .eot liegen im gleichen Ordner.
Wenn ich mir das lokal oder online anschaue funktioniert das wunderbar, aber nur weil ich die ja installiert habe. Mache ich das online auf einem anderen Rechner gehts nicht mehr.
Der Internet Explorer soll das schon voll unterstützen, der Firefox 3.0 nur zum Teil, und erst richtig ab Version 3.1
Code:
<STYLE TYPE="text/css">
<!--
@font-face {
font-family: Espruar Font;
font-style: normal;
font-weight: normal;
src: url(http://angarion.de/ESPRUAR1.eot);
/* src: url(ESPRUAR1.eot); */
}
@font-face {
font-family: BlackChancery;
font-style: normal;
font-weight: normal;
src: url(http://angarion.de/BLACKCH0.eot);
/* src: url(BLACKCH0.eot); */
}
-->
</STYLE>
</head>
<body>
<p style="font-family:Espruar Font">Espruar<br>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>
<p style="font-family:BlackChancery">BlackChancery<br>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>
<p style="font-family:Arial">Text Arial<br>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>
<p>ohne Font-Angabe<br>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>
Was mache ich falsch, damit es erstmal wenigstens im IE funktioniert?
sehen kann man die Datei unter der url:
http://angarion.de/testfont.php