X
Tap here to go to the mobile version of the site.

Fóram Tacaíochta

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

Postáilte

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?

Réiteach roghnaithe

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:

Read this answer in context 1
Luaigh

Tuilleadh mionsonraí faoin chóras

Breiseáin Shuiteáilte

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

Feidhmchlár

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

Tuilleadh Eolais

cor-el
  • Top 10 Contributor
  • Moderator
17346 réiteach 156811 freagra

Réiteach Roghnaithe

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
An bhfuil an freagra seo cabhrach? 1
Luaigh

Úinéir na ceiste

Thank you very much!

Thank you very much!
An bhfuil an freagra seo cabhrach?
Luaigh
Cuir ceist

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.