Specify the style to be used for the font in use.
Available font styles depend on the font set with text-font
parameter.
Values
-
normal
: regular face of the current font family.
-
italic
: cursive version of the current font family.
-
oblique
: usually just a sloped version of the regular face of the current font family.
The default value for this parameter is normal
.
When the specified font style is not available, both italic
and oblique
styles will be simulated using sloped versions of the normal font style.
Examples
Normal is the default font style, if needed it can be explicitly set with text-style=normal
:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-style=normal
In this example we set a italic
font style with text-style=italic
:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-style=italic
Using oblique
font style with text-style=oblique
:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-style=oblique