From 4c2aa804671d7276e8a0eb95da07202ead05c843 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 31 Jul 2026 16:45:52 +0300 Subject: [PATCH] 14.3.0 --- NEWS | 70 ++++++++++++++++++++++++++++++++++++++++++ docs/harfbuzz-docs.xml | 1 + meson.build | 2 +- src/hb-depend.cc | 8 ++--- src/hb-ot-fetch.cc | 4 +-- src/hb-ot-fetch.h | 4 +-- src/hb-paint.cc | 2 +- src/hb-paint.h | 4 +-- src/hb-subset-depend.h | 6 ++-- src/hb-subset.h | 2 +- src/hb-version.h | 6 ++-- 11 files changed, 90 insertions(+), 19 deletions(-) diff --git a/NEWS b/NEWS index 6d66712ed..16a66a67c 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,73 @@ +Overview of changes leading to 14.3.0 +Friday, July 31, 2026 +===================================== +- Changes affecting shaping output: + * Lookup order is now respected for mark positioning in the cross-direction + (y in horizontal text, x in vertical text): marks no longer follow a + cross-direction shift that a later lookup applies to the base. This + improves compatibility with DirectWrite and Core Text. + * Fix mark attachment to ligatures formed from decomposed glyphs. + * The `calt` feature in Hangul text is now disabled only for the Jamos, + not the whole buffer. + +- Support for partially instancing version of `avar` table, as well as `CFF2` + table. + +- New fill-glyph paint operation and APIs for the common case of filling a + glyph with a solid color. + +- New API to fetch assorted raw values from the `OS/2`, `head`, and `post` + tables. + +- New experimental API to extract a font’s glyph dependency graph, that + applications can use to compute glyph closures themselves without running the + subsetter. + +- New subset flag to convert the charset of a subsetted CID-keyed `CFF` fonts + into identity charset, and a matching `hb-subset` option. Useful for + embedding fonts in PDF. + +- Command-line utilities now handle non-ASCII arguments correctly on Windows. + +- Various instancing and subsetting fixes. + +- Various fixes to the experimental `harfbuzz-vector`, `harfbuzz-raster` and + `harfbuzz-gpu` libraries. + +- Various improvements to the HarfRust integration shaper. + +- Various build, CI, portability, and fuzzing fixes. + +- New API: + * OpenType: + +HB_OT_BITS_TAG_FS_TYPE + +HB_OT_BITS_TAG_FS_SELECTION + +HB_OT_BITS_TAG_MAC_STYLE + +HB_OT_BITS_TAG_IS_FIXED_PITCH + +HB_OT_BITS_TAG_UNICODE_RANGE_1 + +HB_OT_BITS_TAG_UNICODE_RANGE_2 + +HB_OT_BITS_TAG_UNICODE_RANGE_3 + +HB_OT_BITS_TAG_UNICODE_RANGE_4 + +HB_OT_BITS_TAG_CODE_PAGE_RANGE_1 + +HB_OT_BITS_TAG_CODE_PAGE_RANGE_2 + +HB_OT_NUMBER_TAG_FONT_X_MIN + +HB_OT_NUMBER_TAG_FONT_Y_MIN + +HB_OT_NUMBER_TAG_FONT_X_MAX + +HB_OT_NUMBER_TAG_FONT_Y_MAX + +hb_ot_bits_tag_t + +hb_ot_fetch_bits() + +hb_ot_number_tag_t + +hb_ot_fetch_number() + + * Paint: + +hb_paint_fill_glyph_func_t + +hb_paint_fill_glyph() + +hb_paint_funcs_set_fill_glyph_func() + + * Subset library: + +HB_SUBSET_FLAGS_CFF_IDENTITY_CHARSET + + Overview of changes leading to 14.2.1 Tuesday, June 2, 2026 ===================================== diff --git a/docs/harfbuzz-docs.xml b/docs/harfbuzz-docs.xml index 0ae264713..224e1ceae 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.3.0 Index of new symbols in 14.2.0 Index of new symbols in 14.1.0 Index of new symbols in 14.0.0 diff --git a/meson.build b/meson.build index 97ae4ce1b..c5c3c3a25 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('harfbuzz', ['c', 'cpp'], meson_version: '>= 0.60.0', - version: '14.2.1', + version: '14.3.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-depend.cc b/src/hb-depend.cc index dd175ba5f..03627c8fd 100644 --- a/src/hb-depend.cc +++ b/src/hb-depend.cc @@ -123,7 +123,7 @@ hb_depend_data_builder_t::compile (hb_face_t *face) * Return value: (transfer full): New depend object, or `nullptr` if creation * failed (out of memory or invalid face). Destroy with hb_subset_depend_destroy(). * - * XSince: REPLACEME + * Since: 14.3.0 **/ hb_subset_depend_t * hb_subset_depend_from_face_or_fail (hb_face_t *face) @@ -168,7 +168,7 @@ hb_subset_depend_from_face_or_fail (hb_face_t *face) * * Return value: Total number of dependency edges for @gid. * - * XSince: REPLACEME + * Since: 14.3.0 **/ unsigned int hb_subset_depend_lookup_glyph (hb_subset_depend_t *depend, @@ -218,7 +218,7 @@ hb_subset_depend_lookup_glyph (hb_subset_depend_t *depend, * * Return value: true if there is such a set, false otherwise * - * XSince: REPLACEME + * Since: 14.3.0 **/ hb_bool_t hb_subset_depend_lookup_set (hb_subset_depend_t *depend, hb_codepoint_t index, @@ -237,7 +237,7 @@ hb_subset_depend_lookup_set (hb_subset_depend_t *depend, hb_codepoint_t index, * Decreases the reference count on @depend, and if it reaches zero, destroys * @depend, freeing all memory. * - * XSince: REPLACEME + * Since: 14.3.0 **/ void hb_subset_depend_destroy (hb_subset_depend_t *depend) diff --git a/src/hb-ot-fetch.cc b/src/hb-ot-fetch.cc index 9e5a2de62..fa11f877b 100644 --- a/src/hb-ot-fetch.cc +++ b/src/hb-ot-fetch.cc @@ -55,7 +55,7 @@ * * Return value: the bit field, or zero if the font does not have it. * - * XSince: REPLACEME + * Since: 14.3.0 **/ uint32_t hb_ot_fetch_bits (hb_face_t *face, @@ -86,7 +86,7 @@ hb_ot_fetch_bits (hb_face_t *face, * * Return value: the number, or zero if the font does not have it. * - * XSince: REPLACEME + * Since: 14.3.0 **/ int32_t hb_ot_fetch_number (hb_face_t *face, diff --git a/src/hb-ot-fetch.h b/src/hb-ot-fetch.h index 95adadc81..76530937e 100644 --- a/src/hb-ot-fetch.h +++ b/src/hb-ot-fetch.h @@ -48,7 +48,7 @@ HB_BEGIN_DECLS * * Bit fields that can be fetched with hb_ot_fetch_bits(). * - * XSince: REPLACEME + * Since: 14.3.0 **/ typedef enum { HB_OT_BITS_TAG_FS_TYPE = HB_TAG ('f','s','t','p'), @@ -80,7 +80,7 @@ hb_ot_fetch_bits (hb_face_t *face, * * Numbers that can be fetched with hb_ot_fetch_number(). * - * XSince: REPLACEME + * Since: 14.3.0 **/ typedef enum { HB_OT_NUMBER_TAG_FONT_X_MIN = HB_TAG ('x','m','i','n'), diff --git a/src/hb-paint.cc b/src/hb-paint.cc index 9e84fbbb9..df42637a3 100644 --- a/src/hb-paint.cc +++ b/src/hb-paint.cc @@ -577,7 +577,7 @@ hb_paint_color_glyph (hb_paint_funcs_t *funcs, void *paint_data, * Perform a "fill-glyph" paint operation: fill the glyph's shape * with a solid color. * - * XSince: REPLACEME + * Since: 14.3.0 */ void hb_paint_fill_glyph (hb_paint_funcs_t *funcs, void *paint_data, diff --git a/src/hb-paint.h b/src/hb-paint.h index c5e4add22..7064b3456 100644 --- a/src/hb-paint.h +++ b/src/hb-paint.h @@ -172,7 +172,7 @@ typedef hb_bool_t (*hb_paint_color_glyph_func_t) (hb_paint_funcs_t *funcs, * "color", "pop-clip" paint operations, in that order, will be emitted * instead. * - * XSince: REPLACEME + * Since: 14.3.0 */ typedef void (*hb_paint_fill_glyph_func_t) (hb_paint_funcs_t *funcs, void *paint_data, @@ -888,7 +888,7 @@ hb_paint_funcs_set_color_glyph_func (hb_paint_funcs_t *funcs, * * Sets the fill-glyph callback on the paint functions struct. * - * XSince: REPLACEME + * Since: 14.3.0 */ HB_EXTERN void hb_paint_funcs_set_fill_glyph_func (hb_paint_funcs_t *funcs, diff --git a/src/hb-subset-depend.h b/src/hb-subset-depend.h index 24917991e..9d784fc62 100644 --- a/src/hb-subset-depend.h +++ b/src/hb-subset-depend.h @@ -60,7 +60,7 @@ HB_BEGIN_DECLS * known limitations of static dependency analysis (expected over-approximation) * from bugs (unexpected over-approximation). * - * XSince: REPLACEME + * Since: 14.3.0 */ typedef enum { /*< flags >*/ HB_SUBSET_DEPEND_EDGE_FLAG_NONE = 0x00u, @@ -79,7 +79,7 @@ typedef enum { /*< flags >*/ * * Highly experimental API. Subject to change. * - * XSince: REPLACEME + * Since: 14.3.0 */ typedef struct hb_subset_depend_t hb_subset_depend_t; @@ -97,7 +97,7 @@ typedef struct hb_subset_depend_t hb_subset_depend_t; * * A single dependency edge returned by hb_subset_depend_lookup_glyph(). * - * XSince: REPLACEME + * Since: 14.3.0 */ typedef struct { hb_tag_t table_tag; diff --git a/src/hb-subset.h b/src/hb-subset.h index c74ce5439..e3308506d 100644 --- a/src/hb-subset.h +++ b/src/hb-subset.h @@ -95,7 +95,7 @@ typedef struct hb_subset_plan_t hb_subset_plan_t; * compatibility with older renderers that don't support CFF2. Since: 13.0.0 * @HB_SUBSET_FLAGS_CFF_IDENTITY_CHARSET: If set and subsetting a CID-keyed CFF * font, the output CFF charset will use sequential identity CIDs (CID = new - * GID) rather than preserving the original CIDs. XSince: REPLACEME + * GID) rather than preserving the original CIDs. Since: 14.3.0 * * List of boolean properties that can be configured on the subset input. * diff --git a/src/hb-version.h b/src/hb-version.h index 4907e0ee1..16442f81a 100644 --- a/src/hb-version.h +++ b/src/hb-version.h @@ -47,20 +47,20 @@ HB_BEGIN_DECLS * * The minor component of the library version available at compile-time. */ -#define HB_VERSION_MINOR 2 +#define HB_VERSION_MINOR 3 /** * HB_VERSION_MICRO: * * The micro component of the library version available at compile-time. */ -#define HB_VERSION_MICRO 1 +#define HB_VERSION_MICRO 0 /** * HB_VERSION_STRING: * * A string literal containing the library version available at compile-time. */ -#define HB_VERSION_STRING "14.2.1" +#define HB_VERSION_STRING "14.3.0" /** * HB_VERSION_ATLEAST: