Specify the weight or boldness of the font.
Available weights depend on the font set with text-font parameter.
Values
This parameter accepts an integer or string from the following list describing the font weight.
-
100 or thin.
-
200 or extralight.
-
300 or light.
-
400 or normal.
-
500 or medium.
-
600 or semibold.
-
700 or bold.
-
800 or extrabold.
-
900 or black.
The default value for this parameter is 400, a normal weight.
Examples
Using a thin font weight with text-weight=thin parameter. text-weight=100 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=thin
Using a extralight font weight with text-weight=extralight parameter. text-weight=200 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=extralight
Using a light font weight with text-weight=light parameter. text-weight=300 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=light
Using a normal font weight with text-weight=normal parameter. Normal weight is the default value for text-weight parameter so using text-weight=400 or not specifying the parameter at all could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=normal
Using a medium font weight with text-weight=medium parameter. text-weight=500 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=medium
Using a semibold font weight with text-weight=semibold parameter. text-weight=600 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=semibold
Using a bold font weight with text-weight=bold parameter. text-weight=700 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=bold
Using a extrabold font weight with text-weight=extrabold parameter. text-weight=800 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=extrabold
Using a black font weight with text-weight=black parameter. text-weight=900 could be used for the same result:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-weight=black