Skip to content

Add a function which triggers creation/refresh of the Kiva font cache #828

@jwiggins

Description

@jwiggins

Warming up the Kiva font cache is a very expensive operation (several seconds). Most code will only trigger it when drawing text, which is generally gives a bad user experience.

We should instead provide a function in the public API which triggers creation of the cache if it is not yet built. Currently kiva.fonttools.font_manager.default_font_manager does this as a side-effect, but it is not part of the public API. I don't think it should become public, but I do think another function should exist for managing the cache.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions