| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Big-endian s390 is failing, but I'm not sure I can fix it without seeing the output image. |
Sorry, something went wrong.
|
This increases the size of the sdist by about 20% from 58M to 69M. Are all these fonts necessary, or can we still be confident in testing with existing fonts (I guess they're not CBDT or COLR), or just one of the smaller additions? |
Sorry, something went wrong.
DejaVuSans-24-*.ttf (6MB total) can be replaced by a different font or a cut-down version with just a few glyphs for testing. The biggest chunk is the 9MB CBDT font NotoColorEmoji.ttf; CBDT fonts are essentially just a collection of bitmaps (uncompressed or PNG), so any font will be large. If the license allows it, stripping out all except the tested bitmaps might be possible. BungeeColor-Regular_colr_Windows.ttf (COLR font) is just 73.6 KB. |
Sorry, something went wrong.
Here you go - generated with this commit forked from your branch. |
Sorry, something went wrong.
Ah, I had the right idea, but forgot long long is 8 bytes... Thanks for the help. |
Sorry, something went wrong.
I've stripped down the DejaVuSans-24-*.ttf fonts to ASCII and used an older version of NotoColorEmoji.ttf (5.1MB). Is this sufficient? |
Sorry, something went wrong.
|
Looks like we also need the setuptools workaround for 3.8 (like #4958) for Windows/GHA: RuntimeWarning: The _imaging extension was built for another version of Pillow or PIL:
Core version: None
Pillow version: 8.0.0.dev0
Traceback (most recent call last):
File "selftest.py", line 6, in <module>
from PIL import Image, features
File "<frozen zipimport>", line 259, in load_module
File "C:\hostedtoolcache\windows\Python\3.8.6\x86\lib\site-packages\pillow-8.0.0.dev0-py3.8-win32.egg\PIL\Image.py", line 97, in <module>
ImportError: The _imaging extension was built for another version of Pillow or PIL:
Core version: None
Pillow version: 8.0.0.dev0
Error: Process completed with exit code 1.
https://github.com/python-pillow/Pillow/pull/4955/checks?check_run_id=1239105264 |
Sorry, something went wrong.
|
#4958 already includes 3.8, this branch just needs to be rebased or merge master (I think re-running the checks should suffice) |
Sorry, something went wrong.
| if parse_version(features.version_module("freetype2")) < parse_version( | ||
| "2.10.0" | ||
| ): | ||
| pytest.skip("Freetype 2.10.0 or newer required") |
There was a problem hiding this comment.
There's quite a few Freetype version check and skips, let's put them into a helper, for example:
def skip_unless_freetype(required_version, message):
Sorry, something went wrong.
There was a problem hiding this comment.
I went with the following to let the check be reusable for other features:
def skip_unless_feature_version(feature, version_required, reason=None):
Sorry, something went wrong.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
Removing test_imagefont_bitmap.test_similar (in favor of the new test test_imagefont.test_bitmap_font) also allows removing 0.9MB DejaVuSans-bitmap.ttf. |
Sorry, something went wrong.
|
Thank you! Please can you add release notes for this, plus for any of your other PRs since the last release? |
Sorry, something went wrong.
Yep, figured that out a few weeks after this PR (#5155).
Not automatically, see #4808. If you are fine with splitting up the text yourself, you can use the approach outlined here: #3346 (comment). |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Proper fix for #891, partial support for #3346
Changes proposed in this pull request:
Apple SBIX and W3C SVG fonts are not yet supported by FreeType.
Example:
NotoColorEmoji.ttf (CBDT):

seguiemj.ttf (COLR):
