Skip to content

Commit 9abc894

Browse files
committed
Improve 'rebuilding font cache' warning message
1 parent 736597e commit 9abc894

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

proplot/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ def register_fonts(*args, user=True, default=False):
773773
fnames_all = {font.fname for font in mfonts.fontManager.ttflist}
774774
fnames_proplot -= fnames_proplot_ttc
775775
if not fnames_all >= fnames_proplot:
776-
warnings._warn_proplot('Rebuilding font cache.')
776+
warnings._warn_proplot(
777+
'Rebuilding font cache. This may increase import time. '
778+
'Usually happens after importing proplot for the first time.'
779+
)
777780
if hasattr(mfonts.fontManager, 'addfont'):
778781
# Newer API lets us add font files manually and deprecates TTFPATH. However
779782
# to cache fonts added this way, we must call json_dump explicitly.

0 commit comments

Comments
 (0)