cache_key property

FileFontSource.cache_key property

The key of this source in the cache.

@property
def cache_key(self) -> str:
    ...

Remarks

This key is used to identify cache item when saving/loading font search cache with FontSettings.save_search_cache() and FontSettings.set_fonts_sources() methods.

If key is not specified then FileFontSource.file_path will be used as a key instead.

See Also