python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.32k stars 2.23k forks source link

How to detect character shown as box for a font? #8528

Closed nissansz closed 2 weeks ago

nissansz commented 2 weeks ago

text = "をも資资儲储議议歷历權权個个堅坚㊽㊾㊿TextInAaBbCcDdEeFfGgHhIi" image

radarhere commented 2 weeks ago

See https://github.com/python-pillow/Pillow/issues/5993#issuecomment-1023699805

nissansz commented 2 weeks ago

I tried to add some more backup fonts as family, it works now. What is the latest version to support font family?

radarhere commented 2 weeks ago

I believe you are talking about FreeTypeFontFamily from #6926. That PR hasn't been merged, meaning that you use it at your own risk. If you have questions about it, please ask them in that PR.

nissansz commented 2 weeks ago

https://github.com/nulano/Pillow/actions/runs/10547427520/job/29220095047

I saw python 3.9 supported. How about 3.8?

radarhere commented 2 weeks ago

Python 3.8 is now EOL - https://devguide.python.org/versions/

So Pillow no longer supports it - see https://pillow.readthedocs.io/en/stable/installation/python-support.html. Pillow 10.4.0 was the last version to support Python 3.8.

nissansz commented 2 weeks ago

ok. Thank you.