A
A
Alexey2018-09-01 17:35:24
css
Alexey, 2018-09-01 17:35:24

How to accurately determine the numerical value of a font's weight for CSS?

As you know, in CSS, weight can be set in numbers: 100, 200 ... 700, etc. And how exactly do you know which fat content corresponds to which figure? In graphic editors, they are denoted by words like: thin, medium, semibold.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2018-09-01
@aheleha

Compliance is set when connecting the font

@font-face {
 font-family: "Open Sans";
 src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
        url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
 font-weight: 300;
}

@font-face {
 font-family: "Open Sans";
 src: url("/fonts/OpenSans-Bold-webfont.woff2") format("woff2"),
        url("/fonts/OpenSans-Bold-webfont.woff") format("woff");
 font-weight: 500;
}

S
SagePtr, 2018-09-01
@SagePtr

And the approximate correspondence of numbers in CSS and font names is here: https://developer.mozilla.org/en/docs/Web/CSS/font...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question