X
點擊此處開啟此網站的行動版。

技術支援討論區

Roboto Light font won't display even though I have it, and Roboto displays fine

已張貼

I want to replace all fonts on all websites with Roboto Light. I downloaded the Roboto family and installed it on my PC. Now when I use this:

  • {font-family: "Roboto";}

it works fine, but when I use this:

  • {font-family: "Roboto Light";}

it falls back on another font. Why?

I want to replace all fonts on all websites with Roboto Light. I downloaded the Roboto family and installed it on my PC. Now when I use this: *{font-family: "Roboto";} it works fine, but when I use this: *{font-family: "Roboto Light";} it falls back on another font. Why?

被選擇的解決方法

You need to add extra font setting to make Firefox select a specific variant. All Roboto fonts are seen as one family and the correct variant is chosen based on other settings (light might be: font-weight:300; or font-weight:lighter;)

See:

從原來的回覆中察看解決方案 1
引用

額外的系統細節

已安裝的外掛程式

  • The plugin allows you to have a better experience with Microsoft SharePoint

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.2.12

更多資訊

cor-el
  • Top 10 Contributor
  • Moderator
17344 個解決方法 156777 個答案

選擇的解決方法

You need to add extra font setting to make Firefox select a specific variant. All Roboto fonts are seen as one family and the correct variant is chosen based on other settings (light might be: font-weight:300; or font-weight:lighter;)

See:

You need to add extra font setting to make Firefox select a specific variant. All Roboto fonts are seen as one family and the correct variant is chosen based on other settings (light might be: font-weight:300; or font-weight:lighter;) See: *https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping
這篇文章有幫助嗎? 1
引用

提出問題者

Thank you very much!

Thank you very much!
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題