__init__ constructor

On this page

init

Initializes a regular-style font for text measurement in redaction options.

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

init

Initializes a font with the specified style for text measurement in redaction options.

def __init__(self, name, size, style):
    ...
Parameter Type Description
name str Font family name.
size float Font size in points.
style FontStyle Style flags for the expected text.

See Also

On this page