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

Clear the font cache on uninstall #50

Open
moi15moi opened this issue Jun 8, 2024 · 0 comments
Open

Clear the font cache on uninstall #50

moi15moi opened this issue Jun 8, 2024 · 0 comments

Comments

@moi15moi
Copy link
Owner

moi15moi commented Jun 8, 2024

When the user uninstall the program with pip uninstall FontCollector, it won't clear the font cache.
To actually clear the cache, the user needs to call FontLoader.discard_system_font_cache() and FontLoader.discard_generated_font_cache().

It seems that it isn't possible to run custom code when the user do a pip uninstall FontCollector. See Custom code on pip uninstall.
Because of that, I don't really know how I could clear the font cache on uninstall.

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

No branches or pull requests

1 participant