Skip to content

[Bug]: findSystemFonts should not look in subdirectories of C:\Users\Admin\AppData\Local\Microsoft\Windows\Fonts #24836

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

Closed
moi15moi opened this issue Dec 29, 2022 · 1 comment

Comments

@moi15moi
Copy link

moi15moi commented Dec 29, 2022

Bug summary

findSystemFonts takes the font in the directory: C:\Users\USER_NAME\AppData\Local\Microsoft\Windows\Fonts\Deleted

It should not take them. They are supposedly deleted. It is better to ignore them.

It is basically the same issue as #22859, but with another directory.
The PR #24655 should probably correct this problem.

Code for reproduction

from matplotlib import font_manager
font_manager.findSystemFonts()

Actual outcome

font_manager.findSystemFonts retrieve fonts from the folder: C:\Users\USER_NAME\AppData\Local\Microsoft\Windows\Fonts\Deleted

Expected outcome

font_manager.findSystemFonts should not retrieve fonts from the folder: C:\Users\USER_NAME\AppData\Local\Microsoft\Windows\Fonts\Deleted

Additional information

No response

Operating system

Windows 10

Matplotlib Version

3.6.2

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

pip

@QuLogic
Copy link
Member

QuLogic commented May 25, 2023

This appears to have been fixed by #24655.

@QuLogic QuLogic closed this as completed May 25, 2023
@QuLogic QuLogic added this to the v3.7.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants