CSS font weight does not โmake fonts thinโ (or bold) when working with web fonts. For fonts not downloaded from -y-url, the font-weight value displays from ultra thin to extra bold, but for custom fonts, the weight "whatever the @ font-face font binds, it should be": it's just numbers differentiations used when declaring a font family with multiple weights.
The following is a CSS declaration for a web font that uses three weights, but take a close look at the font resource and font weight:
@font-face { font-family: "Helvetica Neue"; font-weight: 800; src: url(helveticaneue-ultrathin.woff); } @font-face { font-family: "Helvetica Neue"; font-weight: 400; src: url(helveticaneue-regular.woff); } @font-face { font-family: "Helvetica Neue"; font-weight: 100; src: url(helveticaneue-ultrathin.woff); }
This gives us one CSS-declared font family with three specific weights (using a value other than 100, 400, or 800 will result in undefined behavior). Now two of these weights point to the same font resource .
The following code will style the text using an ultra-thin font, although CSS uses a weight of 800, which for standard fonts usually means โpretty darn boldโ:
<p style="font-family: 'Helvetica Neue'; font-weight:800">This is thin!</p>
So, if you want to use the thin font of a super duper: go for it. But this has nothing to do with the CSS font-weight value and everything related to the you value, assign it in your @ font-face rule, and then use it in your CSS font.
source share