__init__ constructor

init

Initializes a new Font instance with the default size of 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