Registry / devops / mplfonts

mplfonts

JSON →
library0.0.11pypypi✓ verified 80d ago

Fonts manager for matplotlib. Provides easy management of Chinese and other non-ASCII fonts for Matplotlib plots. Current version 0.0.11, released in 2023, low maintenance cadence.

pip install mplfonts
INSTALL
IMPORT
SIG · MPLFONTS
M
mplfonts
devopspythonv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use_font
from mplfonts import use_font
from mplfonts import font_manager
list_font
from mplfonts import list_font
conf
from mplfonts import conf

Initialize mplfonts and set a Chinese font family. Requires internet on first run to download font packages.

from mplfonts import init_fonts, font_manager init_fonts() import matplotlib.pyplot as plt plt.rcParams['font.family'] = 'SimHei' plt.title('中文标题') plt.show()
Debug
Known issues
deprecatedThe function 'install_font' has been renamed to 'init_fonts'.
fix
Use init_fonts() instead of install_font().
affects: <=0.0.9
gotchaFirst call to init_fonts() downloads fonts from network and may take a long time or fail if behind a proxy.
fix
Ensure internet connectivity or pre-download fonts manually.
affects: all
gotchaDoes not automatically update Matplotlib font cache; you may need to delete ~/.cache/matplotlib/fontlist-*.json after init.
fix
Run: import matplotlib.font_manager as fm; fm._load_fontmanager(try_read_cache=False)
affects: all
Upgrade
Version history
0.0.11latest on PyPI · released Mar 28, 2026
Audit
Dependencies
matplotlibrequiredRequired for font management
fonttoolsrequiredUsed for font processing
Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
mplfonts — pip install mplfonts · libregistry