You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a small (128x32) OLED display, which is setup as 4 lines of text on a Raspberry Pi 5 running Ubuntu Server 24.04 LTS.
What did you do?
Upgraded my version of pillow (to any version from 10.1.0 or later)
What did you expect to happen?
My display to be readable.
What actually happened?
Some text is unreadable. In particular, the 6's look almost the same as 8's
What are your OS, Python and Pillow versions?
OS: Ubuntu 22.04 and 24.04
Python: 3.9.19, 3.10.12, 3.12.3
Pillow: 10.3.0
Pillow 10.3.0
Python 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0]
--------------------------------------------------------------------
Python executable is /home/dhylands/adafruit-oled-ssd1306/.direnv/python-3.12.3/bin/python3
Environment Python files loaded from /home/dhylands/adafruit-oled-ssd1306/.direnv/python-3.12.3
System Python files loaded from /usr
--------------------------------------------------------------------
Python Pillow modules loaded from /home/dhylands/adafruit-oled-ssd1306/.direnv/python-3.12.3/lib/python3.12/site-packages/PIL
Binary Pillow modules loaded from /home/dhylands/adafruit-oled-ssd1306/.direnv/python-3.12.3/lib/python3.12/site-packages/PIL
--------------------------------------------------------------------
--- PIL CORE support ok, compiled for 10.3.0
*** TKINTER support not installed
--- FREETYPE2 support ok, loaded 2.13.2
--- LITTLECMS2 support ok, loaded 2.16
--- WEBP support ok, loaded 1.3.2
--- WEBP Transparency support ok
--- WEBPMUX support ok
--- WEBP Animation support ok
--- JPEG support ok, compiled for libjpeg-turbo 3.0.2
--- OPENJPEG (JPEG2000) support ok, loaded 2.5.2
--- ZLIB (PNG/ZIP) support ok, loaded 1.3
--- LIBTIFF support ok, loaded 4.6.0
--- RAQM (Bidirectional Text) support ok, loaded 0.10.1, fribidi 1.0.13, harfbuzz 8.4.0
*** LIBIMAGEQUANT (Quantization method) support not installed
--- XCB (X protocol) support ok
--------------------------------------------------------------------
Image from version 10.0.1 using ImageFont.load_default()
Image from version 10.3.0 using ImageFont.load_default() (same results seen using 10.1.0 or later)
Image from 10.3.0 using ImageFont.load_default(size=8)
Image from 10.3.0 using ImageFont.load_default(size=9)
Image from 10.3.0 using ImageFont.load_default(size=10)
The text was updated successfully, but these errors were encountered:
radarhere
changed the title
New (since 10.1.0) font display is worse than "better than nothig font" for small sizes
New (since 10.1.0) font display is worse than "better than nothing font" for small sizes
May 26, 2024
If our default font isn't suitable for your purposes, would the easiest solution not be to simply find another font to use? Or are you requesting that provide a way to access to the previous default font?
I guess I'm asking for a way to access the previous default font.
I'm dubious that raterizing a vector font is going to give decent results for characters that are only 8 pixels high, but I'm not a font expert.
I'm using a small (128x32) OLED display, which is setup as 4 lines of text on a Raspberry Pi 5 running Ubuntu Server 24.04 LTS.
What did you do?
Upgraded my version of pillow (to any version from 10.1.0 or later)
What did you expect to happen?
My display to be readable.
What actually happened?
Some text is unreadable. In particular, the 6's look almost the same as 8's
What are your OS, Python and Pillow versions?
Image from version 10.0.1 using
![display-better-than-nothing](https://private-user-images.githubusercontent.com/127500/333910651-deea0c91-73bd-420a-a5da-80b4c3aa613a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDQ5NTEsIm5iZiI6MTcyNTU0NDY1MSwicGF0aCI6Ii8xMjc1MDAvMzMzOTEwNjUxLWRlZWEwYzkxLTczYmQtNDIwYS1hNWRhLTgwYjRjM2FhNjEzYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxMzU3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMjlkZjY0ZjJjMTQyZDQ2ZjczOTdhYWNhNmJiNGNiYWU4Y2U1NTU5NmUyNmJlMjYwNzZmMDNlMTIzOTM4ZmVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.DNXURojuVHgcdrTTbP_eC8savlV_T99y5GgURGnSOaA)
ImageFont.load_default()
Image from version 10.3.0 using
![display-default](https://private-user-images.githubusercontent.com/127500/333910682-6a91be96-81eb-42df-aebe-5d6450eda773.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDQ5NTEsIm5iZiI6MTcyNTU0NDY1MSwicGF0aCI6Ii8xMjc1MDAvMzMzOTEwNjgyLTZhOTFiZTk2LTgxZWItNDJkZi1hZWJlLTVkNjQ1MGVkYTc3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxMzU3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMmRmYjkyMzY2ZDg3ZGZjMWExNjIyZGViZTBhY2RjOTE4OWE1YTEyMDE3Y2Y1ZTE5NWJiZDAxNzcxMTQzY2QzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.82bmltMSA0j0ULQUyS9Vzs3cg5ZTqM8G5_2GVZf1sFs)
ImageFont.load_default()
(same results seen using 10.1.0 or later)Image from 10.3.0 using
![display-8](https://private-user-images.githubusercontent.com/127500/333910718-d6163c14-f588-4eee-bf40-8fa47883daf5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDQ5NTEsIm5iZiI6MTcyNTU0NDY1MSwicGF0aCI6Ii8xMjc1MDAvMzMzOTEwNzE4LWQ2MTYzYzE0LWY1ODgtNGVlZS1iZjQwLThmYTQ3ODgzZGFmNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxMzU3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYzc4ZmRiNDlkODU4MzM1MDhiZjM3YmVmZTUwZmM3OThiNzY3MThkYWE4YTgwYTMxM2MwOWE0OTFiMjk2YzFhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.1bizlouZdRU4N0ihHeqWgmw3NBgzbbAdYaE6Va4XptA)
ImageFont.load_default(size=8)
Image from 10.3.0 using
![display-9](https://private-user-images.githubusercontent.com/127500/333910770-4efa9375-4b92-4885-8df8-7ae63f0fed90.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDQ5NTEsIm5iZiI6MTcyNTU0NDY1MSwicGF0aCI6Ii8xMjc1MDAvMzMzOTEwNzcwLTRlZmE5Mzc1LTRiOTItNDg4NS04ZGY4LTdhZTYzZjBmZWQ5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxMzU3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNTA3MjgwYWJjMTk0NjU1OTU0MGNmZWRmY2E3MWU5MmExYWQ4ZWMyNGY1MjViOGU3NWMwNDMzZmE0MmRmZDU1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Fj2ixx93k02CXp0GDzQP-nyY7SyBG2qcdw0bdwqvNdg)
ImageFont.load_default(size=9)
Image from 10.3.0 using
![display-10](https://private-user-images.githubusercontent.com/127500/333910815-0e6b0232-845f-48ec-9148-ade419ec4b55.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NDQ5NTEsIm5iZiI6MTcyNTU0NDY1MSwicGF0aCI6Ii8xMjc1MDAvMzMzOTEwODE1LTBlNmIwMjMyLTg0NWYtNDhlYy05MTQ4LWFkZTQxOWVjNGI1NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxMzU3MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iY2JhZTQ2MjMwYmU2ODYwZmE0NGJlMmMxYjUyZmUxZGRjNzBkODU4NjAzYTA4YTc2Zjk1MDM0ODMzZDg3MGFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0ZJaZ33_CkHiFOwnBvBG9UEy_C80U36smUtqEjGWpDY)
ImageFont.load_default(size=10)
The text was updated successfully, but these errors were encountered: