create_flexible method

create_flexible

Creates a font transformation with flexible matching options.

def create_flexible(cls, original_font, replacement_font, match_any_size, match_any_style):
    ...
Parameter Type Description
original_font Font Font specification to match.
replacement_font Font Font specification to transform to.
match_any_size bool True to match any size, False to match exact size.
match_any_style bool True to match any style, False to match exact style.

See Also