From 68d19d6964da52dfbe714527370a55b4ca43f4bc Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 11 Mar 2026 04:01:41 +0200 Subject: [PATCH] 13.1.0 --- NEWS | 17 +++++++++++++++++ docs/harfbuzz-docs.xml | 1 + meson.build | 2 +- src/hb-raster-image.cc | 4 ++-- src/hb-version.h | 6 +++--- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index e2bfce96f..015be93be 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,20 @@ +Overview of changes leading to 13.1.0 +Wednesday, March 11, 2026 +===================================== +- The `harfbuzz-raster` library can now render bitmap color glyph formats + (`CBDT` and `sbix`). It now also has an API to serialize / deserialize images + to and from PNGs. This new functionality requires `libpng`, and will not be + available if HarfBuzz is built without `libpng`. +- Install `hb-raster` command line utility. +- Fix overflow when applying `stch` feature with malicious fonts. +- Fix memory leaks in `harfbuzz-raster` and `harfbuzz-vector` in error + conditions, as well as more robust handling of allocation failures. +- Various documentation improvements and build fixes. +- New API: + +hb_raster_image_serialize_to_png_or_fail() + +hb_raster_image_deserialize_from_png_or_fail() + + Overview of changes leading to 13.0.1 Saturday, March 7, 2026 ===================================== diff --git a/docs/harfbuzz-docs.xml b/docs/harfbuzz-docs.xml index ee51de149..23049d2b1 100644 --- a/docs/harfbuzz-docs.xml +++ b/docs/harfbuzz-docs.xml @@ -124,6 +124,7 @@ API Index Index of deprecated API + Index of new symbols in 13.1.0 Index of new symbols in 13.0.0 Index of new symbols in 12.1.0 Index of new symbols in 11.3.0 diff --git a/meson.build b/meson.build index 40e09a9ea..cce0ef760 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('harfbuzz', ['c', 'cpp'], meson_version: '>= 0.60.0', - version: '13.0.1', + version: '13.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-raster-image.cc b/src/hb-raster-image.cc index ea89aa61e..bfe78dea2 100644 --- a/src/hb-raster-image.cc +++ b/src/hb-raster-image.cc @@ -938,7 +938,7 @@ hb_raster_image_get_format (hb_raster_image_t *image) * * Return value: `true` if deserialization succeeded, `false` otherwise * - * XSince: REPLACEME + * Since: 13.1.0 **/ hb_bool_t hb_raster_image_deserialize_from_png_or_fail (hb_raster_image_t *image, @@ -958,7 +958,7 @@ hb_raster_image_deserialize_from_png_or_fail (hb_raster_image_t *image, * Return value: (transfer full): * A newly allocated PNG #hb_blob_t, or `NULL` on failure * - * XSince: REPLACEME + * Since: 13.1.0 **/ hb_blob_t * hb_raster_image_serialize_to_png_or_fail (hb_raster_image_t *image) diff --git a/src/hb-version.h b/src/hb-version.h index c52497fb0..447f997b1 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 0 +#define HB_VERSION_MINOR 1 /** * 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 "13.0.1" +#define HB_VERSION_STRING "13.1.0" /** * HB_VERSION_ATLEAST: