-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Only supported for TrueType font #722
Comments
Did you solve this problem, please?I tried to fix this yesterday, but I spent a long time trying a lot of fonts and it didn't work... |
A suggestion on StackOverflow solved the issue for me, see here.
fixed the error for me! |
@mjcarter95 your issue is still relevant: could you reopen it or should I open a new one? I have the same exact error message but no options to try
Thanks |
OK, the same problem reproduced also in a different Windows 10 machine, Python 3.9.9, Pillow 9.0.1. So I tried this (alternative answer to the same SO question above): pip install --upgrade pillow That upgraded Pillow to version 9.5.0 and solved my problem in both Windows machines |
Problem solved, thank you |
Pillow version is 9.5.0, python- 3.10.5. Still the problem is not solved |
This doesn't solve the problem on windows. Pillow version is 9.5.0, python- 3.10.0. Anaconda Enviornemnt Restarted. Windows Restarted. Double checked that font file exists and is ttf. Still the problem is not solved. |
Description
ValueError: Only supported for TrueType fonts
when trying to create a WorldCloud on Ubuntu 22.04 with Python 3.10.6.Steps/Code to Reproduce
arial.ttf
is downloaded from https://www.freefontspro.com/14454/arial.ttf and placed in the same directory as the above Python code.Expected Results
No error thrown, world cloud of "foo bar foo bar hello world" is produced and shown.
Actual Results
The following error:
Versions
The text was updated successfully, but these errors were encountered: