From 13cac4f57ecaaffe76373e7edfec1c915dfe288e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 17 Apr 2026 15:18:58 -0600 Subject: [PATCH] [NEWS] Document GPU shader API changes Coverage out parameter, premultiplied gradient interpolation, foreground alpha fix, and the shader signature change. Assisted-by: Claude Opus 4.6 (1M context) --- NEWS | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/NEWS b/NEWS index a874e221d..58b96ff3e 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,16 @@ Overview of changes leading to NEXT (REPLACEME) ignored. * Encode entry point now returns extents and auto-clears the encoder; the standalone get_extents() is gone. + * hb_gpu_paint() now takes an `out float coverage` parameter + that returns the maximum antialiasing edge coverage across + all paint layers. Callers should apply stem darkening and + gamma correction to this coverage value rather than to the + composited color, so interior paint colors stay undistorted. + * Gradient color stop interpolation now happens in + premultiplied space per the OpenType COLR specification. + * The foreground color sentinel (is_foreground) now correctly + preserves the paint-tree alpha from the encoded color data + instead of discarding it. * The hb-gpu utility gains --draw / --paint flags with per-font auto-detect, and --output-file / -o for headless single-frame rendering to a PPM image (P6). @@ -125,6 +135,11 @@ Overview of changes leading to NEXT (REPLACEME) +hb_gpu_draw_get_scale() +hb_gpu_draw_glyph_or_fail() +- Changed shader API, GPU library: + hb_gpu_paint() now takes an additional `out float coverage` + parameter. Existing callers must update their shader code to + pass this argument. + - New API, Raster library: +hb_raster_draw_clear() +hb_raster_draw_glyph_or_fail()