From 863d3f7787c6df18d20e4535c5906bf3eb803bd5 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 21 Sep 2026 00:41:07 +0300 Subject: [PATCH] 14.5.0 --- NEWS | 78 +++++++++++++++++++++++------------------- docs/harfbuzz-docs.xml | 1 + meson.build | 2 +- src/hb-common.h | 4 +-- src/hb-draw.cc | 6 ++-- src/hb-draw.h | 12 +++---- src/hb-paint.cc | 6 ++-- src/hb-paint.h | 12 +++---- src/hb-script-list.h | 8 ++--- src/hb-version.h | 4 +-- 10 files changed, 70 insertions(+), 63 deletions(-) diff --git a/NEWS b/NEWS index c78daf67d..c45f8a2cb 100644 --- a/NEWS +++ b/NEWS @@ -1,13 +1,47 @@ -Overview of changes leading to REPLACEME -====================================== -- Add script values for Unicode 18.0: Jurchen, Proto-Cuneiform, and Seal. -- Use the Universal Shaping Engine for the new scripts and ideographic - baselines for Jurchen and Seal. +Overview of changes leading to 14.5.0 +Monday, September 21, 2026 +===================================== +- Update Unicode 18.0 data and script support, including script values for + Jurchen, Proto-Cuneiform, and Seal, and the corresponding shaping support. +- Add support for VARC table subsetting, including pruning auxiliary data, + remapping glyph IDs, and guarding the feature in lean builds. +- Add rendering work budgets to the draw and paint APIs and share them across + the raster, vector, GPU, and Cairo renderers so nested outline work remains + bounded. +- Improve performance in set iteration, lookup traversal, and the repacker, and + add coverage for new benchmarks and fuzzing seeds. +- Fix various correctness and robustness issues across the CFF, Graphite, + DirectWrite, and repacker code paths, including memory leaks, overflow checks, + bounds issues, and malformed-font handling. +- Various build, portability, and CI fixes. - New API: - +HB_SCRIPT_JURCHEN - +HB_SCRIPT_PROTO_CUNEIFORM - +HB_SCRIPT_SEAL + * Common: + +HB_BUDGET_DEFAULT + +HB_BUDGET_UNLIMITED + +HB_SCRIPT_JURCHEN + +HB_SCRIPT_PROTO_CUNEIFORM + +HB_SCRIPT_SEAL + * Draw: + +hb_draw_set_budget_func_t + +hb_draw_get_budget_func_t + +hb_draw_get_budget_remaining_func_t + +hb_draw_funcs_set_set_budget_func() + +hb_draw_funcs_set_get_budget_func() + +hb_draw_funcs_set_get_budget_remaining_func() + +hb_draw_set_budget() + +hb_draw_get_budget() + +hb_draw_get_budget_remaining() + * Paint: + +hb_paint_set_budget_func_t + +hb_paint_get_budget_func_t + +hb_paint_get_budget_remaining_func_t + +hb_paint_funcs_set_set_budget_func() + +hb_paint_funcs_set_get_budget_func() + +hb_paint_funcs_set_get_budget_remaining_func() + +hb_paint_set_budget() + +hb_paint_get_budget() + +hb_paint_get_budget_remaining() Overview of changes leading to 14.4.0 @@ -36,39 +70,11 @@ Overview of changes leading to 14.3.1 Thursday, August 13, 2026 ===================================== - Various fuzzing and build fixes. -- Add public draw and paint work-budget APIs. Rendering backends can expose a - persistent policy and a live counter so nested outline traversal consumes the - same finite budget as emitted output. - Various subsetting fixes. - Fix AAT insertion at the end of the text. - Fix various rendering bugs in the experimental GPU library. - WASM shaper code can now read the user features. -- New API: - * Common: - +HB_BUDGET_DEFAULT - +HB_BUDGET_UNLIMITED - * Draw: - +hb_draw_set_budget_func_t - +hb_draw_get_budget_func_t - +hb_draw_get_budget_remaining_func_t - +hb_draw_funcs_set_set_budget_func() - +hb_draw_funcs_set_get_budget_func() - +hb_draw_funcs_set_get_budget_remaining_func() - +hb_draw_set_budget() - +hb_draw_get_budget() - +hb_draw_get_budget_remaining() - * Paint: - +hb_paint_set_budget_func_t - +hb_paint_get_budget_func_t - +hb_paint_get_budget_remaining_func_t - +hb_paint_funcs_set_set_budget_func() - +hb_paint_funcs_set_get_budget_func() - +hb_paint_funcs_set_get_budget_remaining_func() - +hb_paint_set_budget() - +hb_paint_get_budget() - +hb_paint_get_budget_remaining() - Overview of changes leading to 14.3.0 Friday, July 31, 2026 diff --git a/docs/harfbuzz-docs.xml b/docs/harfbuzz-docs.xml index 5423a8c05..66307a6da 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 14.5.0 Index of new symbols in 14.4.0 Index of new symbols in 14.3.0 Index of new symbols in 14.2.0 diff --git a/meson.build b/meson.build index 3497294b5..cc42b4f4d 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('harfbuzz', ['c', 'cpp'], meson_version: '>= 0.60.0', - version: '14.4.0', + version: '14.5.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-common.h b/src/hb-common.h index 6105c558b..02fa906d6 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -99,7 +99,7 @@ typedef int hb_bool_t; * * Use the implementation's finite default work budget. * - * XSince: REPLACEME + * Since: 14.5.0 **/ #define HB_BUDGET_DEFAULT ((int64_t) (-0x7FFFFFFFFFFFFFFF - 1)) @@ -109,7 +109,7 @@ typedef int hb_bool_t; * Use an effectively unlimited work budget. Structural safety limits remain * active. * - * XSince: REPLACEME + * Since: 14.5.0 **/ #define HB_BUDGET_UNLIMITED ((int64_t) 0x7FFFFFFFFFFFFFFF) diff --git a/src/hb-draw.cc b/src/hb-draw.cc index fc0d8117e..2a1239f52 100644 --- a/src/hb-draw.cc +++ b/src/hb-draw.cc @@ -379,7 +379,7 @@ hb_draw_funcs_is_immutable (hb_draw_funcs_t *dfuncs) * * Return value: `true` if the draw functions support work budgets * - * XSince: REPLACEME + * Since: 14.5.0 **/ hb_bool_t hb_draw_set_budget (hb_draw_funcs_t *dfuncs, void *draw_data, int64_t budget) @@ -396,7 +396,7 @@ hb_draw_set_budget (hb_draw_funcs_t *dfuncs, void *draw_data, int64_t budget) * * Return value: the configured policy, or #HB_BUDGET_DEFAULT if unsupported * - * XSince: REPLACEME + * Since: 14.5.0 **/ int64_t hb_draw_get_budget (hb_draw_funcs_t *dfuncs, void *draw_data) @@ -416,7 +416,7 @@ hb_draw_get_budget (hb_draw_funcs_t *dfuncs, void *draw_data) * Return value: the live work budget; if it is not tracked, the concrete * configured policy or #HB_BUDGET_UNLIMITED * - * XSince: REPLACEME + * Since: 14.5.0 **/ int64_t hb_draw_get_budget_remaining (hb_draw_funcs_t *dfuncs, void *draw_data) diff --git a/src/hb-draw.h b/src/hb-draw.h index c66130ad7..2e1785f99 100644 --- a/src/hb-draw.h +++ b/src/hb-draw.h @@ -207,7 +207,7 @@ typedef void (*hb_draw_close_path_func_t) (hb_draw_funcs_t *dfuncs, void *draw_d * * Return value: `true` if the budget was set, `false` if unsupported * - * XSince: REPLACEME + * Since: 14.5.0 **/ typedef hb_bool_t (*hb_draw_set_budget_func_t) (hb_draw_funcs_t *dfuncs, void *draw_data, @@ -224,7 +224,7 @@ typedef hb_bool_t (*hb_draw_set_budget_func_t) (hb_draw_funcs_t *dfuncs, * * Return value: the configured work-budget policy * - * XSince: REPLACEME + * Since: 14.5.0 **/ typedef int64_t (*hb_draw_get_budget_func_t) (hb_draw_funcs_t *dfuncs, void *draw_data, @@ -244,7 +244,7 @@ typedef int64_t (*hb_draw_get_budget_func_t) (hb_draw_funcs_t *dfuncs, * Return value: (nullable) (transfer none): the live work budget, or `NULL` if * live budget accounting is unsupported * - * XSince: REPLACEME + * Since: 14.5.0 **/ typedef int64_t *(*hb_draw_get_budget_remaining_func_t) (hb_draw_funcs_t *dfuncs, void *draw_data, @@ -339,7 +339,7 @@ hb_draw_funcs_set_close_path_func (hb_draw_funcs_t *dfuncs, * * Sets the budget setter callback. * - * XSince: REPLACEME + * Since: 14.5.0 **/ HB_EXTERN void hb_draw_funcs_set_set_budget_func (hb_draw_funcs_t *dfuncs, @@ -355,7 +355,7 @@ hb_draw_funcs_set_set_budget_func (hb_draw_funcs_t *dfuncs, * * Sets the budget-policy getter callback. * - * XSince: REPLACEME + * Since: 14.5.0 **/ HB_EXTERN void hb_draw_funcs_set_get_budget_func (hb_draw_funcs_t *dfuncs, @@ -371,7 +371,7 @@ hb_draw_funcs_set_get_budget_func (hb_draw_funcs_t *dfuncs, * * Sets the live-budget getter callback. * - * XSince: REPLACEME + * Since: 14.5.0 **/ HB_EXTERN void hb_draw_funcs_set_get_budget_remaining_func (hb_draw_funcs_t *dfuncs, diff --git a/src/hb-paint.cc b/src/hb-paint.cc index 5bfc5e4a5..0224a1c0f 100644 --- a/src/hb-paint.cc +++ b/src/hb-paint.cc @@ -444,7 +444,7 @@ hb_paint_funcs_is_immutable (hb_paint_funcs_t *funcs) * * Return value: `true` if the paint functions support work budgets * - * XSince: REPLACEME + * Since: 14.5.0 **/ hb_bool_t hb_paint_set_budget (hb_paint_funcs_t *funcs, void *paint_data, int64_t budget) @@ -461,7 +461,7 @@ hb_paint_set_budget (hb_paint_funcs_t *funcs, void *paint_data, int64_t budget) * * Return value: the configured policy, or #HB_BUDGET_DEFAULT if unsupported * - * XSince: REPLACEME + * Since: 14.5.0 **/ int64_t hb_paint_get_budget (hb_paint_funcs_t *funcs, void *paint_data) @@ -481,7 +481,7 @@ hb_paint_get_budget (hb_paint_funcs_t *funcs, void *paint_data) * Return value: the live work budget; if it is not tracked, the concrete * configured policy or #HB_BUDGET_UNLIMITED * - * XSince: REPLACEME + * Since: 14.5.0 **/ int64_t hb_paint_get_budget_remaining (hb_paint_funcs_t *funcs, void *paint_data) diff --git a/src/hb-paint.h b/src/hb-paint.h index 41eab791f..77d6f13e8 100644 --- a/src/hb-paint.h +++ b/src/hb-paint.h @@ -75,7 +75,7 @@ typedef struct hb_paint_funcs_t hb_paint_funcs_t; * * Return value: `true` if the budget was set, `false` if unsupported * - * XSince: REPLACEME + * Since: 14.5.0 **/ typedef hb_bool_t (*hb_paint_set_budget_func_t) (hb_paint_funcs_t *funcs, void *paint_data, @@ -92,7 +92,7 @@ typedef hb_bool_t (*hb_paint_set_budget_func_t) (hb_paint_funcs_t *funcs, * * Return value: the configured work-budget policy * - * XSince: REPLACEME + * Since: 14.5.0 **/ typedef int64_t (*hb_paint_get_budget_func_t) (hb_paint_funcs_t *funcs, void *paint_data, @@ -112,7 +112,7 @@ typedef int64_t (*hb_paint_get_budget_func_t) (hb_paint_funcs_t *funcs, * Return value: (nullable) (transfer none): the live work budget, or `NULL` if * live budget accounting is unsupported * - * XSince: REPLACEME + * Since: 14.5.0 **/ typedef int64_t *(*hb_paint_get_budget_remaining_func_t) (hb_paint_funcs_t *funcs, void *paint_data, @@ -127,7 +127,7 @@ typedef int64_t *(*hb_paint_get_budget_remaining_func_t) (hb_paint_funcs_t *func * * Sets the budget setter callback. * - * XSince: REPLACEME + * Since: 14.5.0 **/ HB_EXTERN void hb_paint_funcs_set_set_budget_func (hb_paint_funcs_t *funcs, @@ -143,7 +143,7 @@ hb_paint_funcs_set_set_budget_func (hb_paint_funcs_t *funcs, * * Sets the budget-policy getter callback. * - * XSince: REPLACEME + * Since: 14.5.0 **/ HB_EXTERN void hb_paint_funcs_set_get_budget_func (hb_paint_funcs_t *funcs, @@ -159,7 +159,7 @@ hb_paint_funcs_set_get_budget_func (hb_paint_funcs_t *funcs, * * Sets the live-budget getter callback. * - * XSince: REPLACEME + * Since: 14.5.0 **/ HB_EXTERN void hb_paint_funcs_set_get_budget_remaining_func (hb_paint_funcs_t *funcs, diff --git a/src/hb-script-list.h b/src/hb-script-list.h index 194b2cf63..1caa16aab 100644 --- a/src/hb-script-list.h +++ b/src/hb-script-list.h @@ -227,9 +227,9 @@ HB_END_DECLS * @HB_SCRIPT_SIDETIC: `Sidt`, Since: 11.5.0 * @HB_SCRIPT_TAI_YO: `Tayo`, Since: 11.5.0 * @HB_SCRIPT_TOLONG_SIKI: `Tols`, Since: 11.5.0 - * @HB_SCRIPT_JURCHEN: `Jurc`, XSince: REPLACEME - * @HB_SCRIPT_PROTO_CUNEIFORM: `Pcun`, XSince: REPLACEME - * @HB_SCRIPT_SEAL: `Seal`, XSince: REPLACEME + * @HB_SCRIPT_JURCHEN: `Jurc`, Since: 14.5.0 + * @HB_SCRIPT_PROTO_CUNEIFORM: `Pcun`, Since: 14.5.0 + * @HB_SCRIPT_SEAL: `Seal`, Since: 14.5.0 * @HB_SCRIPT_INVALID: No script set * * Data type for scripts. Each #hb_script_t's value is an #hb_tag_t corresponding @@ -477,7 +477,7 @@ typedef enum HB_SCRIPT_TOLONG_SIKI = HB_TAG ('T','o','l','s'), /*17.0*/ /* - * XSince: REPLACEME + * Since: 14.5.0 */ HB_SCRIPT_JURCHEN = HB_TAG ('J','u','r','c'), /*18.0*/ HB_SCRIPT_PROTO_CUNEIFORM = HB_TAG ('P','c','u','n'), /*18.0*/ diff --git a/src/hb-version.h b/src/hb-version.h index 10aed6731..d4dc9e900 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 4 +#define HB_VERSION_MINOR 5 /** * 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 "14.4.0" +#define HB_VERSION_STRING "14.5.0" /** * HB_VERSION_ATLEAST: