Roboto Condensed google字体可以在所有浏览器中使用

时间:2016-04-19 16:30:04

标签: css fonts rendering roboto

我有几种谷歌字体,我使用@import规则导入样式表。除Roboto Condensed外,所有这些都很好。它回归到默认的sans-serif字体,在我的例子中是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字体,更改字体粗细和字体样式,使用font-family名称,但dev工具仍然显示渲染字体是Helvetica。其他谷歌字体渲染得很好。可能是什么问题?

1 个答案:

答案 0 :(得分:3)

我的样式表中包含@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400&subset=latin,latin-ext);

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

对我来说工作得很好。你的控制台有错误吗?