Repository navigation
Conversation
c2981e6 to
9824149
Compare
c2987cb to
ffb6892
Compare
d0031ad to
df6065f
Compare
|
I'll rebase this again after #9908 gets merged since this builds on it 👍 |
This comment was marked as outdated.
This comment was marked as outdated.
|
Rebased on the freshly rebased |
|
Rebased on the once more freshly rebased ft-clarify, now with release notes targeting version 13.1.0. |
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
* Avoids a segfault when `encoding` and `font_bytes` weren't passed at all (they were left uninitialized) * Make font bytes optional * Remove keyword support from core.getfont Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
I'm not sold on the need for this. It's rare that many test images need to be updated at once. For most scenarios, if you're writing tests, you can simply
|
(and make `assert_image_equal` raise an AssertionError, not a pytest.fail.Exception)
Sign-extending e.g. 0x80 (char) to 0xffffff80 (FT_ULong) is not what we want when looking up a glyph.
This is a PR where I needed to do just that, and doing it manually seemed like a chore, since there were lots of affected tests, scattered throughout.
Sure, and such a PR would probably be tagged in review, right, just like any change..? Either way I'm not convinced there's a huge risk of inadvertent usage, as you'd have to find the envvar, turn it on, then notice that "huh, a lot of files have changed, wonder why, ah well, I'll commit them anyway", and make a PR with all of them? Either way, I can rip out the commit that adds that switch if you like. |
Note
Stacked on #9908.
That PR ought to be reviewed and merged first and I'll happily rebase this.
Refs #9898 (not "fixes", since I can't be sure this ends up fixing OP's issues).
What's moving?
Some infrastructure:
PILLOW_TEST_SNAPSHOTScan now be set tocreate,overwriteorupdate, soassert_image_similar_tofileandassert_image_equal_tofilecan update the golden image to what was passed in; this is similar to--snapshot-updatefor Syrupy orINSTA_UPDATEfor Rust's Insta.These are the actual fixes; see #9908 for notes on the clean-ups:
(unsigned char)cast.