0

我有几种谷歌字体,我使用@import 规则将它们导入样式表。除了 Roboto Condensed 之外,它们都渲染得很好。它回退到默认的无衬线字体,在我的例子中是 Helvetica。

@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400&subset=latin,latin-ext);

font-family: 'Roboto Condensed', sans-serif;
font-style: normal;
font-weight: 400;

我已经尝试删除本地 Roboto 字体,更改字体粗细和字体样式,使用字体系列名称,但开发工具仍然显示渲染字体是 Helvetica。其他谷歌字体渲染得很好。可能是什么问题?

4

1 回答 1

3

Included @import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400&subset=latin,latin-ext); in my stylesheet and

html, body {
  font-family: 'Roboto Condensed', sans-serif;
  font-style: normal;
  font-weight: 400;
}

worked just fine for me. Do you have any errors in your console?

于 2016-04-19T17:13:32.307 回答