Firefox @ font-face mit lokaler Datei - herunterladbare Schriftart: Download fehlgeschlagen
Ich habe ein Problem mit der Verwendung einer Schriftart, auf die über eine relative URL zugegriffen wird.
@font-face {
font-family: 'ElegantIcons';
src:url('../src_main/fonts/ElegantIcons.eot');
src:url('../src_main/fonts/ElegantIcons.ttf') format('truetype'),
url('../src_main/fonts/ElegantIcons.svg#ElegantIcons') format('svg'),
url('../src_main/fonts/ElegantIcons.woff') format('woff'),
url('../src_main/fonts/ElegantIcons.eot?#iefix') format('embedded-opentype');
font-weight: normal;
font-style: normal;
}
Wenn ich auf die Webseite zugreife, funktioniert die Schriftart nicht und in der Konsole erhalte ich Folgendes:
downloadable font: download failed (font-family: "ElegantIcons" style:normal weight:normal stretch:normal src index:1): status=2147500037
source: file:///...snipped.../src_main/fonts/ElegantIcons.woff @ file:///...snipped.../src_poke/fonts-style.css
Der Zugriff auf die Datei durch Kopieren / Einfügen der URL in die Adressleiste des Browsers zeigt, dass es sich um die richtige URL handelt, da ich die Schriftart herunterladen kann.