Overview
Sources
Libraries
Images API

Text Font Style text-style

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
Rendering text over image with text-style parameter using normal as value.
x px

In this example we set a italic font style with text-style=italic:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-style=italic
Rendering text over image with text-style parameter using italic as value.
x px

Using oblique font style with text-style=oblique:

GET
https://assets.imglab-cdn.net/particles.jpeg?text-style=oblique
Rendering text over image with text-style parameter using oblique as value.
x px