zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > CSS
Seite neu laden Schriftart wird in IE7 nicht geladen

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 07.07.2011, 09:24
Erfahrener Benutzer
XHTMLforum-Mitglied
Thread-Ersteller
 
Registriert seit: 07.11.2006
Beiträge: 124
Eppi befindet sich auf einem aufstrebenden Ast
Standard Schriftart wird in IE7 nicht geladen

Hallo,

brauche Dringend Hilfe. Hat jemand eine Idee, warum die speziell eingebundene Schriftart im IE7 nicht funktioniert? (Eucerin: Heimat Seite) Ab IE8 in Chrome und Firefox funktioniert es tadellos. In Opera wird die Schriftart zwar geladen, aber eher zerfranzt dargestellt. Die Schriftarten sind hier eingebunden: http://der-dirigent.de/test/fileadmin/css/eucerin.css

danke & gruß, paul
Mit Zitat antworten
Sponsored Links
  #2 (permalink)  
Alt 07.07.2011, 10:23
EvT EvT ist offline
Erfahrener Benutzer
XHTMLforum-Kenner
 
Registriert seit: 11.09.2006
Ort: Bad Wildungen
Beiträge: 2.220
EvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekannt
Standard

Eine Möglich wäre:
Zitat:

@font-face {
font-family: 'MyFontFamily';
src: url('myfont-webfont.eot?#iefix') format('embedded-opentype'),
url('myfont-webfont.woff') format('woff'),
url('myfont-webfont.ttf') format('truetype'),
url('myfont-webfont.svg#svgFontName') format('svg');
}


How it works

Internet Explorer <9 has a bug in the parser for the src attribute. If you include more than one font format in the src, IE fails to load it and reports a 404 error. The reason is that IE attempts to load as a file everything between the opening parenthesis all the way to the very last closing parenthesis. To deal with that wrong behavior, you merely declare the EOT first and append a single question mark. The question mark fools IE into thinking the rest of the string is a query string and loads just the EOT file. The other browsers follow the spec and select the format they need based on the src cascade and the format hint.
Quelle: The New Bulletproof @Font-Face Syntax

Lies dort auch die Updates und die Kommentare. Und ja, unter Opera muss die Schrift wirklich mal zum Dermatologen.
Mit Zitat antworten
Sponsored Links
  #3 (permalink)  
Alt 07.07.2011, 10:37
Erfahrener Benutzer
XHTMLforum-Mitglied
Thread-Ersteller
 
Registriert seit: 07.11.2006
Beiträge: 124
Eppi befindet sich auf einem aufstrebenden Ast
Standard

aber es funktioniert leider auch nicht, wenn ich nur die eot verwende... :-/

gruß, paul
Mit Zitat antworten
  #4 (permalink)  
Alt 07.07.2011, 10:45
Erfahrener Benutzer
XHTMLforum-Mitglied
Thread-Ersteller
 
Registriert seit: 07.11.2006
Beiträge: 124
Eppi befindet sich auf einem aufstrebenden Ast
Standard

Ich vermute die EOT Dateien sind irgendwie Schrott...

gruß, paul
Mit Zitat antworten
  #5 (permalink)  
Alt 07.07.2011, 10:59
EvT EvT ist offline
Erfahrener Benutzer
XHTMLforum-Kenner
 
Registriert seit: 11.09.2006
Ort: Bad Wildungen
Beiträge: 2.220
EvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekanntEvT ist jedem bekannt
Standard

Die Syntax aus dem verlinkten Artikel soll laut Autor funktionieren (und funktioniert bei mir) in:

Safari 5.03, IE 6-9, Firefox 3.6-4, Chrome 8, iOS 3.2-4.2, Android 2.2-2.3, Opera 11

Leider kann ich IE im Moment nicht selbst testen, deshalb nochmals den Hinweis auf das Fragezeichen in der eot-Syntax.


edit: Auch das Opera-Problem ist in den Kommentaren beschrieben - und bisher ungelöst.
Mit Zitat antworten
Antwort

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
IE7 fixing - expandable menu matsie CSS 6 10.04.2008 16:55
CSS-basiertes Menü fehlerhaft im IE7 otomo CSS 0 16.10.2007 17:56
Pagezoom und IE7 paracelsus CSS 24 17.08.2007 12:36
Problem mit Dastellung in IE7 und FF ConiKost CSS 1 05.07.2006 13:59
CSS wird im FF nicht ganz geladen Philippp CSS 7 05.05.2005 10:51


Alle Zeitangaben in WEZ +2. Es ist jetzt 19:36 Uhr.