eingebettete schriftart auf website wird nicht angezeigt in IE oder Chrome

Habe ich die folgenden schriftart-setup in den CSS-Code für eine wordpress-basierte Website, die ich Baue, und die Schriften Displays gut in FF, nicht aber im IE(9) oder Chrome(neueste Version).

  /* =Typography
  -------------------------------------------------------------- */
  @font-face {
      font-family: 'Humanist';
      src: url('fonts/humanist521lightbt-webfont.eot');
      src: url('fonts/humanist521lightbt-webfont.eot?#iefix') format('embedded-opentype'),
           url('fonts/humanist521lightbt-webfont.woff') format('woff'),
           url('fonts/Humanist521LightBT.ttf') format('truetype'),
           url('fonts/humanist521lightbt-webfont.svg#webfontregular') format('svg');
      font-weight: normal;
      font-style: normal;
  }

  @font-face {
      font-family: 'HumanistIT';
      src: url('fonts/humanist521lightitalicbt-webfont.eot');
      src: url('fonts/humanist521lightitalicbt-webfont.eot?#iefix') format('embedded-opentype'),
           url('fonts/humanist521lightitalicbt-webfont.woff') format('woff'),
           url('fonts/Humanist521LightItalicBT.ttf') format('truetype'),
           url('fonts/humanist521lightitalicbt-webfont.svg#webfontregular') format('svg');
      font-weight: normal;
      font-style: normal;
  }

  @font-face {
     font-family: 'HumanistBo';
     src: url('fonts/humanist777blackbt-webfont.eot');
     src: url('fonts/humanist777blackbt-webfont.eot?#iefix') format('embedded-opentype'),
     url('fonts/humanist777blackbt-webfont.woff') format('woff'),
     url('fonts/Humanist777BlackBT.ttf') format('truetype'),
     url('fonts/humanist777blackbt-webfont.svg#webfontregular') format('svg');
     font-weight: normal;
     font-style: normal;
  }

Wenn ich die schriftart für ein element ich nur hinzufügen font-family: 'Humanist', Arial, sans-serif;

Die fonts im theme-Verzeichnis im Ordner "fonts".

Mache ich etwas falsch oder etwas fehlt, damit es funktioniert mit anderen Browsern?

Dank

  • aktualisierten code. Nun nur noch Probleme in Chrome
InformationsquelleAutor Reece | 2013-05-15
Schreibe einen Kommentar