Skip to content

FIX: Use correct path to the default font#931

Merged
corranwebster merged 2 commits into
mainfrom
fix/fallback-font
Apr 20, 2022
Merged

FIX: Use correct path to the default font#931
corranwebster merged 2 commits into
mainfrom
fix/fallback-font

Conversation

@ffishburn
Copy link
Copy Markdown
Contributor

Closes #930. Fixes a typo in the default font filename

@ffishburn ffishburn requested a review from aaronayres35 April 12, 2022 18:32
Copy link
Copy Markdown
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.

Good eye. Can you add a unit test which actually exercises this code path?

@jwiggins jwiggins requested a review from corranwebster April 13, 2022 07:48
@corranwebster
Copy link
Copy Markdown
Contributor

I am adding tests for this - most of the machinery is already in the test suite so it's fairly straighforward.

Copy link
Copy Markdown
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

I approve of the fix, but since I wrote the tests it might make sense to have another set of eyes on my contribution.

Copy link
Copy Markdown
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. Thanks for the test coverage.

@corranwebster corranwebster merged commit 129299b into main Apr 20, 2022
@jwiggins jwiggins deleted the fix/fallback-font branch April 20, 2022 10:28
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.

Calling Font.findfont results in RecursionError if no fonts are installed on the system

3 participants