-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Search for fonts in XDG directory as well. #13766
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
Conversation
It currently checks ~/.fonts, but not ~/.local/share/fonts, which fontconfig does do.
|
||
# Precondition: the test font should not be available | ||
fonts = findSystemFonts() | ||
assert not any(font_test_file in font for font in fonts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only to make sure that the test can run. It’s not part of the actual test condition. Shouldn‘t this better be a pytest.fail or pytest.skip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, possibly. I just copied this test from the one below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've added a skip if this condition isn't met.
…766-on-v3.1.x Backport PR #13766 on branch v3.1.x (Search for fonts in XDG directory as well.)
PR Summary
It currently checks ~/.fonts, but not ~/.local/share/fonts, which fontconfig does do.
PR Checklist