I had this problem and I thought of a solution right after I came to this page:
@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; }
So, I wanted to use the Ubuntu font, but our site runs on a local host and will not necessarily be connected to the Internet. I created some @ font-face declarations for an Ubuntu font, named it something else ("UbuntuFallback"), and simply put it on the font style list.
Voila!
Jamie barker
source share