def METHOD_NAME(self):
    self.cpp_info.set_property("cmake_find_mode", "both")
    self.cpp_info.set_property("cmake_file_name", "Fontconfig")
    self.cpp_info.set_property("cmake_target_name", "Fontconfig::Fontconfig")
    self.cpp_info.set_property("pkg_config_name", "fontconfig")
    self.cpp_info.libs = ["fontconfig"]
    if self.settings.os in ("Linux", "FreeBSD"):
        self.cpp_info.system_libs.extend(["m", "pthread"])
    fontconfig_file = os.path.join(self.package_folder, "bin", "etc", "fonts", "fonts.conf")
    self.runenv_info.prepend_path("FONTCONFIG_FILE", fontconfig_file)
    fontconfig_path = os.path.join(self.package_folder, "bin", "etc", "fonts")
    self.runenv_info.prepend_path("FONTCONFIG_PATH", fontconfig_path)
    # TODO: to remove in conan v2
    self.cpp_info.names["cmake_find_package"] = "Fontconfig"
    self.cpp_info.names["cmake_find_package_multi"] = "Fontconfig"
    self.env_info.FONTCONFIG_FILE = fontconfig_file
    self.env_info.FONTCONFIG_PATH = fontconfig_path