ich habe gerade dieses Problem und dachte an eine Lösung hatte kurz nachdem ich zu dieser Seite kam:
@import url(http://fonts.googleapis.com/css?family=Ubuntu:400,400italic,700,700italic);
@font-face {
font-family: "UbuntuFallback";
font-style: normal;
font-weight: normal;
src: url("/webfonts/ubuntu/ubuntu-webfont.eot?#iefix") format("embedded-opentype"), url("/webfonts/ubuntu/ubuntu-webfont.woff") format("woff"), url("/webfonts/ubuntu/ubuntu-webfont.ttf") format("truetype");
}
@font-face {
font-family: "UbuntuFallback";
font-style: normal;
font-weight: bold;
src: url("/webfonts/ubuntu/ubuntu-bold-webfont.eot?#iefix") format("embedded-opentype"), url("/webfonts/ubuntu/ubuntu-bold-webfont.woff") format("woff"), url("/webfonts/ubuntu/ubuntu-bold-webfont.ttf") format("truetype");
}
@font-face {
font-family: "UbuntuFallback";
font-style: italic;
font-weight: normal;
src: url("/webfonts/ubuntu/ubuntu-italic-webfont.eot?#iefix") format("embedded-opentype"), url("/webfonts/ubuntu/ubuntu-italic-webfont.woff") format("woff"), url("/webfonts/ubuntu/ubuntu-italic-webfont.ttf") format("truetype");
}
@font-face {
font-family: "UbuntuFallback";
font-style: italic;
font-weight: bold;
src: url("/webfonts/ubuntu/ubuntu-bolditalic-webfont.eot?#iefix") format("embedded-opentype"), url("/webfonts/ubuntu/ubuntu-bolditalic-webfont.woff") format("woff"), url("/webfonts/ubuntu/ubuntu-bolditalic-webfont.ttf") format("truetype");
}
body
{
font-family: Ubuntu, UbuntuFallback, Tahoma, Sans-Serif;
}
Also wollte ich die Ubuntu-Schriftart verwenden, aber unsere Website auf einem lokalen Host ausgeführt wird und gewann‘ t muss unbedingt mit dem Internet verbunden sein. Ich habe einige @ font-face-Deklarationen für die Ubuntu-Schriftart erstellt, sie etwas anderes genannt ("UbuntuFallback") und sie einfach in die Liste der Schriftart-Familien-Stile eingefügt.
Voilá!
Thank you so viel - seltsam, wie ich das nicht sehen konnte, obwohl es so offensichtlich ist, und elegant .. :) –