create_by_name method

On this page

create_by_name

Creates a font transformation by name only, matching any size and style, with the replacement font preserving the original font’s size and style.

def create_by_name(cls, original_font_name, replacement_font_name):
    ...
Parameter Type Description
original_font_name str Original font family name to transform.
replacement_font_name str Replacement font family name.

See Also

On this page