FontDescription.setStyle

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.

class FontDescription
void
setStyle

Parameters

style pango.types.Style

the style for the font description