enthought / enthought/enable

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

Open
#828 2 comments 0 reactions 0 assignees View on GitHub
discussion type: enhancement
Dominant language
C
Stars
97
Forks
45
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.