Forgive my lack of expertise, but I have a question to ask...
I've come across many examples that use the following method to load fonts from a local server:
@font-face {
font-family: "Roboto";
src: local(Roboto Thin),
url("#{$roboto-font-path}Roboto-Thin.woff2") format("woff2"),
url("#{$roboto-font-path}Roboto-Thin.woff") format("woff");
font-weight: 100;
font-style: normal;
}
@font-face {
font-family: "Roboto";
src: local(Roboto Medium),
url("#{$roboto-font-path}Roboto-Light.woff2") format("woff2"),
url("#{$roboto-font-path}Roboto-Light.woff") format("woff");
font-weight: 500;
font-style: normal;
It's interesting that both font-family
are named Roboto.
How can I indicate in my styling which version of Roboto font I want to use, Thin or Medium?
In previous projects, I've used font-family: "Roboto Light"
when loading fonts externally.