The font-weight CSS property specifies the weight of glyphs in the font, their degree of blackness, or stroke thickness.
object.style.fontWeight = "value";
<'font-weight'> = <font-weight-absolute> | bolder | lighter
<font-weight-absolute> = [normal | bold | <number>]
Same as 400.
Same as 700.
Each number indicates a weight that is at least as dark as its predecessor. Only values greater than or equal to 1, and less than or equal to 1000, are valid, and all other values are invalid.
100 - Thin
200 - Extra Light (Ultra Light)
300 - Light
400 - Normal
500 - Medium
600 - Semi Bold (Demi Bold)
700 - Bold
800 - Extra Bold (Ultra Bold)
900 - Black (Heavy)
Specifies a bolder weight than the inherited value.
Specifies a lighter weight than the inherited value.
© 2021 Osbo Design