FontDescription.setStyle

void setStyle(pango.types.Style style)

Sets the style field of a [pango.font_description.FontDescription].

The [pango.types.Style] enumeration describes whether the font is slanted and the manner in which it is slanted; it can be either [pango.types.Style.Normal], [pango.types.Style.Italic], or [pango.types.Style.Oblique].

Most fonts will either have a italic style or an oblique style, but not both, and font matching in Pango will match italic specifications with oblique fonts and vice-versa if an exact match is not found.

Parameters

stylethe style for the font description