Hallo,
ich beschreib's mal gleich.
Bin aus performence Gründen, für alle Ressource, auf Subdomains umgestiegen.
Im Stil:
<link rel="stylesheet" type="text/css" media="all" href="http://css.domain.de/fonts.css">
<link rel="stylesheet" type="text/css" media="all" href="http://css.domain.de/style.css">
Nun werden aber meine Fonts nicht mehr genutzt!
Die fonts.css:
PHP-Code:
@font-face {
font-family: 'WaitingfortheSunrise';
src: local('WaitingfortheSunrise'), url(fonts/WaitingfortheSunrise.woff) format('woff');
}
@font-face {
font-family: 'Share';
src: local('Share'), url(fonts/Share.woff) format('woff');
}
@font-face {
font-family: 'OverlockSC';
src: local('OverlockSC'), url(fonts/OverlockSC.woff) format('woff');
}
@font-face {
font-family: 'Orbitron';
src: local('Orbitron-Light'), url(fonts/Orbitron.woff) format('woff');
}
Egal ob ich nur den Pfad oder auch dort mit der ganzen URL Arbeite, also
http://css.domain.de/fonts/....
sie werden nicht geladen.
Wenn ich ins File gehe und die URL vom Font in die Adresszeile kopiere, also direkt aufrufe, wird sie mir zum Download angeboten! Sollte also doch Funktionieren!
Was läuft da falsch? Was hab ich übersehen?
Danke
PS: Soll die Font-URL in 'Anführungszeichen'?
Es gibt verschiedene Meinungen dazu!