2

I have downloaded a .Woff font (Ubuntu), here is the code related to it:

  @font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: local('Ubuntu'), url(http://themes.googleusercontent.com/static/fonts/ubuntu/v4/_xyN3apAT_yRRDeqB3sPRg.woff) format('woff');
}

I downloaded it and put it directly into my css folder.

I canged the src value to:

src: local('Ubuntu'), url(ubuntu.woff) format('woff');

(I renamed my font to Ubuntu.woff) But the font is not working with the local URL, I checked the path Chrome gives me(can't find font located at whatever/whatever/css/Ubuntu.woff) and it's the right path. Anyone has an idea why it's not working?

4

2 回答 2

1

我能够在 Internet 上找到一些 Woff 到 TTF 转换器,以这种方式解决问题是一个很好的选择。

于 2013-01-03T13:50:20.290 回答
1

我用另一种 .woff Google 网络字体尝试了同样的事情,但在 Windows 上。显然windows说文件格式无效。

于 2012-09-10T09:20:59.147 回答