__init__ constructor

On this page

init

Initializes a new Font instance with default size 12.

def __init__(self, font_family_name):
    ...
Parameter Type Description
font_family_name str Font name

init

Initializes a new Font instance.

def __init__(self, font_family_name, size):
    ...
Parameter Type Description
font_family_name str Font name.
size float Font size.

See Also

On this page