Google字体的字体重量为100不工作 [英] Google fonts font-weight of 100 is not working

查看:175
本文介绍了Google字体的字体重量为100不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android游戏,使用谷歌字体的Raleway字体,在游戏中看起来不错。我想在网站上使用该字体,但字体不显示相同。在游戏中我使用 Raleway-Thin ,这是我想在网站上使用的同一个。我所遇到的问题是,瘦字体不像游戏中那么薄。

I have an android game that uses the Raleway font from google fonts, and in the game it looks nice. I want to use that font on the website as well, but the font doesn't display the same. In the game I use Raleway-Thin, and that is the same one I want to use on the website. The issue that I am having is that the thin font isn't as thin as in the game.

@import url(http://fonts.googleapis.com/css?family=Raleway:500,600,700,100,800,900,400,200,300);

body{
    font-family: 'Raleway', sans-serif;
}

h1, h2, h3, h4, h5, h6{
    font-weight: 100;
}

当设置 font-weight 作为 100,200,300,400或500 的重量总是相同的。是什么原因?

When setting the font-weight as 100, 200, 300, 400 or 500 the weight is always the same. What is causing this?

推荐答案

我想出来了!

我有字体 Roboto 安装在我的计算机上,所以它使用的是该字体。

I had the font Roboto installed on my computer so it was using that font instead. I removed/deleted this font and this fixed the google boldness as google uses that font all over the place.

我删除/删除了 Raleway

I then removed/deleted Raleway which was also installed on my computer and that fixed the initial issue with my website.

这篇关于Google字体的字体重量为100不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆