-
Notifications
You must be signed in to change notification settings - Fork 20
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
ImageFont.truetype problem #50
Comments
If the The basic excuse on our end is that there are some incompatibilities between the old "PIL" based writer and the AGG-based writer. The AGG writer depends on "aggdraw" which is the real problem here as that library doesn't support PIL's ImageFont objects and pycoast does not currently have a way to wrap/workaround that (ex. convert |
Hei, |
ImageFont objects can still be used with the PIL writer which is still available and used to be the default writer. If you aren't sure it is in the documentation, then where did you see that you should use it? Is there something that needs updating? Any help would be greatly appreciated. |
Aa, it was here (first thing google gave me) |
Dear Developers,
I have Ubuntu 20.04
python 3.8.5
pycoast==1.4.0
I followed:
https://github.com/pytroll/pycoast/blob/master/docs/source/graticule.rst
This did work fine:
But if i replace font by:
font = ImageFont.truetype('/usr/share/fonts/truetype/freefont/FreeSans.ttf', 16)
I get:
TypeError: text() argument 2 must be Font, not FreeTypeFont
Terveisin, Markus
The text was updated successfully, but these errors were encountered: