我已经在使用来自谷歌的字体,它的效果很好:
@font-face {
font-family: 'Chivo';
font-style: normal;
font-weight: 900;
src: local('Chivo Black'), url(http://themes.googleusercontent.com/static/fonts/chivo/v4/uOXSiKkEygwkvR4cgUzOz_esZW2xOQ-xsNqO47m55DA.woff) format('woff');
}
现在我需要从 Google 获得另一种字体,但我不知道该如何获取该 URL。 Google Fonts 上唯一可见的 URL 是(例如此字体):
<link href='http://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
但是如果我将src替换为googleapis的url,字体就无法加载。