[fonttools/fonttools] 2f56b2: Preserve negative COLR radial gradients when all C...

0 views
Skip to first unread message

Behdad Esfahbod

unread,
Oct 12, 2026, 11:55:07 PM (17 hours ago) Oct 12
to fontto...@googlegroups.com
Branch: refs/heads/instancer-colr-preserve-axes
Home: https://github.com/fonttools/fonttools
Commit: 2f56b2b6275bd664e0ef50e09c0314dbdf54349c
https://github.com/fonttools/fonttools/commit/2f56b2b6275bd664e0ef50e09c0314dbdf54349c
Author: Behdad Esfahbod <beh...@behdad.org>
Date: 2026-10-12 (Mon, 12 Oct 2026)

Changed paths:
M Lib/fontTools/varLib/instancer/colr.py
M Tests/varLib/instancer/colr_test.py

Log Message:
-----------
Preserve negative COLR radial gradients when all COLR deltas are resolved (#4284)

* Preserve negative derived COLR radial gradients

Reparameterize circles and color stops together when a derived radius
is negative. Preserve pad, repeat, reflect, and stable stop ordering.
Normalize constant gradients after a partial pin without creating
constant variation regions at the new default.

Allow fractional parameter shifts on the common lattice of the circle
coordinates and F2Dot14 stops. This preserves odd stop bits in ordinary
coordinate ranges that integer-only shifts incorrectly rejected.

Assisted-by: Codex

* Round variable COLR clip edges outwards (#4287)

Round minimum clip edges down and maximum edges up when folding
variation deltas. Nearest rounding can shrink the clip box and cut
painted pixels.

Cover signed fractional deltas, the default location, and direct and
composed instances in both axis orders at ordinary coordinate values.
All 648 related tests passed, with 3 optional pathops tests skipped.

Assisted-by: Codex



To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications
Reply all
Reply to author
Forward
0 new messages