font-weight may also not work if the font you use does not have these weights, you often encounter this when embedding custom fonts. In these cases, the browser is likely to round the number to the nearest weight available to it.
For example, if I insert the following font ...
@font-face { font-family: 'Nexa'; src: url(...); font-weight: 300; font-style: normal; }
Then I will not be able to use anything other than a weight of 300. All other weights will return to 300 unless I specify additional @font-face declarations with these additional weights.
Simon east
source share