html - 如何制作最细的字体

标签 html css fonts photoshop

我在 photoshop 中有一个字体:

photoshop

当我设置 font-weight: 100 时,结果太粗体

result

Font-size:72px, font-family:"Montseratt"

当我将 font-weight300 更改为 400 时,字体也会发生变化(对于 font-weight: 100, 200, 300 字体相同)。我想这意味着该属性有效,但是我怎样才能使字体比该属性可以设置的值更细

最佳答案

你可以做到这一点。

you make a typo it's font-family: 'Montserrat', sans-serif; not font-family:"Montseratt"

body {
 font-family: 'Montserrat', sans-serif;
 font-size: 50px;
}

.thin {
  font-weight: 100;
}

.normal {
  font-weight: 400;
}
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,400" rel="stylesheet">

<p class="thin">THIN<p>
<p class="normal">NORMAL</p>

关于html - 如何制作最细的字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50208004/

相关文章:

html - 多行打字效果

android - "f"后面有 "i"的文本,看不到 "i"上的点,没有字体

ios - FontAwesome Pro 和 xamarin.ios 只有一种字体可以激活

vb.net - 字体安装了吗?功能

javascript - 我无法将外部图像加载到 Canvas 上

javascript - 未捕获的语法错误 : Unexpected token } with unknow reason

javascript - 更改高度并向下滑动文本区域

javascript - 这在 html 表单中意味着什么?

javascript - 如何在Proloader完成加载之前隐藏所有主体元素

javascript - 在 AlloyUI 3.03 中自定义和保存 Diagram Builder 的小麻烦