def METHOD_NAME(ttf_files):
    """ Patch scan_system_fonts with the given list of font file paths.
    This speeds up tests by avoiding having to parse a lot of font files
    on a system.
    Parameters
    ----------
    ttf_files : list of str
        List of file paths for TTF fonts
    """
    def fake_find_system_fonts(fontpaths=None, fontext="ttf"):
        if fontext == "ttf":
            return ttf_files
        return []
    # Patch the version which was imported into `kiva.fonttools.font_manager`
    return mock.patch(
        "kiva.fonttools.font_manager.scan_system_fonts", fake_find_system_fonts
    )