如何在模板主题中添加其他Google字体?
我看到三个选择:logo-font,body-font和headings-font。我为每个人分配了不同的Google字体,它们完美无缺。我想添加一个额外的字体。
ON CONFIG.JSON“font-custom1”:“Google-Roboto + Condensed_700”
ON CSS:p {font-family:stencilFontFamily(“font-custom1”);}
在段落标签上,我可以看到font-family成为“Roboto Condensed”。但是,浏览器上的字体不是Roboto Condensed。
我需要调整其他任何文件吗?
谢谢!
把它放在<head>
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
要么
这是在.scss
文件中
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');
我认为有一种模板方式,但上次我尝试时并不值得。