Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change matplotlib font manager logging level #158

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

yangrq1018
Copy link
Contributor

The default log level of matplotlib.font_manager is WARNING. When enumerate all fonts here
all_fonts = [f.name for f in FontManager().ttflist], it prints a lot of warnings that some font files can't be
loaded correctly. This should be normal as there are a lot of font files installed on the system. Without
changing the global logging level, I use LoggingContext to temporarily silence these warnings.

add Source Han Sans CN 思源黑体
as target Chinese fonts.

@fasiondog fasiondog merged commit d533d1f into fasiondog:master Jan 31, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants