-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix bug when no fonts are available #871
Conversation
I've removed the WIP label. |
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.
I think we should raise a warning here as suggested by @rahulporuri in #870
Celiagg includes the free Montserrat font. |
Due to the new file, you will also need to update:
|
Thanks @jwiggins! |
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.
I would test the packaging, but otherwise LGTM
I built an sdist and saw the font file was included as expected. I then pip installed the sdist in a fresh env and ran the test added here which passed (ie the font was available). Gonna go ahead and merge now |
Thanks for the quick fix here @aaronayres35 |
* add a failing regression test * make test pass with a 'fix' of using a TestTTF font already available in the package * use default font from celiagg and update test * actually add the ttf file and license * move license to LICENSES folder rather than directly next to font file * update manifest.in setup.py and font_license.txt
* add a failing regression test * make test pass with a 'fix' of using a TestTTF font already available in the package * use default font from celiagg and update test * actually add the ttf file and license * move license to LICENSES folder rather than directly next to font file * update manifest.in setup.py and font_license.txt
This PR will fix #870
Currently it only includes a failing regression test. Current plan for a fix is to include a basic freely licensed font with kiva that can be used as a default if we can't find anything else.EDIT: I've added a quick fix of using aTestTTF.ttf
font we already had included in the package for testing as the default if we can't find any other fonts. This prevents the failure, but we may want to include a more legitimate default with the package? TBH I don't know very much at all about fonts / ttf so I'm not sure what would make a good default here.