From 3df40d9b98d6b32f0e4288d4ecfbb158ddb3a372 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 4 Nov 2026 21:56:47 +0200 Subject: [PATCH] 15.1.0 --- NEWS | 49 ++++++++++++++++++++++++++++++++++---- docs/harfbuzz-docs.xml | 1 + meson.build | 2 +- src/hb-buffer-serialize.cc | 4 ++-- src/hb-version.h | 4 ++-- 5 files changed, 51 insertions(+), 9 deletions(-) diff --git a/NEWS b/NEWS index d0df81a5d..32289f75b 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,48 @@ -Overview of changes leading to REPLACEME -====================================== -- Add buffer deserializers that report progress as a byte offset, allowing - introspection bindings to avoid returning a pointer into the input. +Overview of changes leading to 15.1.0 +Wednesday, November 4, 2026 +===================================== +- Add buffer deserialization APIs that report progress as a byte offset, for + use from introspection bindings. +- Fix Indic shaping of the Unicode 18 Devanagari and Bengali additions. +- Fix Arabic fallback shaping: wrong ligatures when a component is missing from + the font, and disappearing marks in legacy fonts. +- Fix `COLR` glyph extents and mark positioning in fonts with empty layers. +- Fix AAT shaping: wrong `kerx` kerning (formats 1 and 2) and mark positioning + (format 4, a 14.3.0 regression), and ignored `kern` and `mort` tables with a + non-first initial state. +- Various fixes to the Graphite2 shaper. +- Report HarfRust shaping failures through `hb_buffer_allocation_successful()`. +- Fix wrong outlines in `gvar` fonts with intermediate tuples. +- Fix `hb_face_create_or_fail()` rejecting face indices with named-instance + bits set. +- Fix wrong fallback metrics: the vertical descender in fonts without `vhea`, + and the hanging baseline for some scripts. +- Fix `hb_ot_layout_lookup_collect_glyph_alternates()` collecting garbage from + `AlternateSubst` and `SingleSubst` format 1 lookups. +- Speed up shaping on faces with many shape plans, `hb_language_from_string()`, + vertical text with `hb-ft`, and `CBDT` and `sbix` fonts. +- Fix crashes and deadlocks with FreeType, including `hb_ft_font_set_funcs()` on + immutable fonts and font queries from color paint callbacks. +- Fix crashes with NULL result pointers in + `hb_ot_metrics_get_position_with_fallback()`, + `hb_ot_layout_get_font_extents()`, and `hb_ot_layout_get_font_extents2()`. +- Fix use-after-free in `hb_map_update()` when updating a map from itself. +- Various fixes for crashes, hangs, and memory use with malformed fonts. +- Faster subsetting of large `GSUB` and `GPOS` tables, and smaller `CFF` output. +- Partially instancing or desubroutinizing `CFF2` fonts with nested blends now + fails instead of changing the outlines. +- Subsetting now fails if a glyph mapping assigns another glyph to glyph 0. +- Fix `hb_subset_axis_range_from_string()` reading past the given length. +- Fix subsetting beyond-64k variable fonts losing `HVAR` advance deltas. +- Various subsetting and instancing fixes, mostly for `CFF`, `CFF2`, and `COLR`. +- Fix rotated and skewed rectangle clips hiding their contents in the raster + library, and out-of-bounds access when extents change during painting. +- Fix the vector library mirroring path clips in SVG, and writing PDFs with + wrong page bounds and misplaced or clipped `COLR` gradients. +- Fix wrong clipping of `COLR` layers in the GPU library. +- Various Cairo integration fixes, including a memory leak per scaled font. +- Fix `hb-info --list-*` crashes on unusual fonts. +- Various build and CI fixes. - New API: +hb_buffer_deserialize_glyphs2() diff --git a/docs/harfbuzz-docs.xml b/docs/harfbuzz-docs.xml index 66307a6da..d41be80f0 100644 --- a/docs/harfbuzz-docs.xml +++ b/docs/harfbuzz-docs.xml @@ -137,6 +137,7 @@ API Index Index of deprecated API + Index of new symbols in 15.1.0 Index of new symbols in 14.5.0 Index of new symbols in 14.4.0 Index of new symbols in 14.3.0 diff --git a/meson.build b/meson.build index 34494f773..c5764e4ee 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('harfbuzz', ['c', 'cpp'], meson_version: '>= 0.60.0', - version: '15.0.0', + version: '15.1.0', default_options: [ 'cpp_eh=none', # Just to support msvc, we are passing -fno-exceptions also anyway # 'cpp_rtti=false', # Do NOT enable, wraps inherit it and ICU needs RTTI diff --git a/src/hb-buffer-serialize.cc b/src/hb-buffer-serialize.cc index fe346d290..b2a72e306 100644 --- a/src/hb-buffer-serialize.cc +++ b/src/hb-buffer-serialize.cc @@ -915,7 +915,7 @@ hb_buffer_deserialize_unicode (hb_buffer_t *buffer, * * Return value: `true` if the full string was parsed, `false` otherwise. * - * XSince: REPLACEME + * Since: 15.1.0 **/ hb_bool_t hb_buffer_deserialize_glyphs2 (hb_buffer_t *buffer, @@ -952,7 +952,7 @@ hb_buffer_deserialize_glyphs2 (hb_buffer_t *buffer, * * Return value: `true` if the full string was parsed, `false` otherwise. * - * XSince: REPLACEME + * Since: 15.1.0 **/ hb_bool_t hb_buffer_deserialize_unicode2 (hb_buffer_t *buffer, diff --git a/src/hb-version.h b/src/hb-version.h index aaccc2f7f..b125247dc 100644 --- a/src/hb-version.h +++ b/src/hb-version.h @@ -47,7 +47,7 @@ HB_BEGIN_DECLS * * The minor component of the library version available at compile-time. */ -#define HB_VERSION_MINOR 0 +#define HB_VERSION_MINOR 1 /** * HB_VERSION_MICRO: * @@ -60,7 +60,7 @@ HB_BEGIN_DECLS * * A string literal containing the library version available at compile-time. */ -#define HB_VERSION_STRING "15.0.0" +#define HB_VERSION_STRING "15.1.0" /** * HB_VERSION_ATLEAST: