__init__ constructor

On this page

init

Initializes a new TextStyle instance.

def __init__(self, name, font_name, font_size, is_bold, is_italic):
    ...
Parameter Type Description
name str The name of the style.
font_name str The name of the font.
font_size float The size of the font.
is_bold bool Indicates whether the font is bold.
is_italic bool Indicates whether the font is italic.

See Also

On this page