Skip to content

setStyle()

Set the font's style.

Parameters

Once an object font has been created, you can use the following function:

font.setStyle(style)
Parameter Type Default Description
style tuple required The new text style, one of Font.PLAIN, Font.BOLD, Font.ITALIC, or Font.BOLDITALIC.