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

Remove USE_FONTCONFIG in font_manager #498

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Conversation

kitchoi
Copy link
Contributor

@kitchoi kitchoi commented Dec 15, 2020

The USE_FONTCONFIG is a module level constant to be flipped to change the behaviour of kiva.fonttools.font_manager at import time. It is hard to see how this can be used apart from running the file as a script.

This PR removes code that is never run due to the fact that USE_FONTCONFIG is false.

Copy link
Member

@jwiggins jwiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I was about to suggest that importing the module and changing the value of USE_FONTCONFIG would give the ability to run this code path, but even that's not possible.

I assume you still want to remove findfont, but didn't want to mix it up with this change?

@kitchoi
Copy link
Contributor Author

kitchoi commented Dec 16, 2020

I assume you still want to remove findfont, but didn't want to mix it up with this change?

Yes I do. It was very tempting though. 😅

@kitchoi kitchoi merged commit c49fe80 into master Dec 16, 2020
@kitchoi kitchoi deleted the remove-use-font-config branch December 16, 2020 09:07
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