mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Replace boolean light_on_dark with continuous brightness-driven exponent. pow(2, b-0.5) gives sqrt(2)≈1.414 for white text (thin) and 1/sqrt(2)≈0.707 for black text (fatten), perfectly symmetric around 1.0 at 50% gray. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>