【发布时间】:2018-08-20 17:18:14
【问题描述】:
我想使用这种早期访问 Google 字体: https://fonts.google.com/earlyaccess#Noto+Nastaliq+Urdu+Draft
在我的 tumblr 博客上: https://muneebkablog.tumblr.com
安装的主题是这个: https://www.tumblr.com/theme/38737
它确实支持谷歌字体,但我不知道如何使用早期访问谷歌字体。
我试过在
之后添加这个 http://fonts.googleapis.com/earlyaccess/notonastaliqurdudraft.css' rel='stylesheet' type='text/css'>但后来我不知道如何编辑以下 html 以使用此字体。这是html中的代码。
html {
font: 175%/1.5 {block:ifGoogleWebFont}{text:Google Web Font},{/block:ifGoogleWebFont} Avenir, Arial;
-webkit-font-smoothing: antialiased;
}
另外,我在网上搜索并知道可以添加自定义 CSS,所以我尝试在“添加自定义 CSS”中添加以下代码:
@import url(http://fonts.googleapis.com/earlyaccess/notonastaliqurdudraft.css);
body {
margin: auto;
margin-top: 2em;
margin-bottom: 10em;
}
*[lang=ur] {
direction: rtl;
font-family: 'Noto Nastaliq Urdu Draft', serif;
}
但似乎没有任何效果。
您现在可能已经注意到我根本不是程序员。我只是一个尝试处理 html 和 CSS 代码的休闲博主。
非常感谢任何帮助:)
【问题讨论】: