Commit Graph
295 Commits
Author SHA1 Message Date
Behdad Esfahbod 93aab15340 [gpu] Add new hb-gpu module for GPU glyph encoding
Port the glyphy library into harfbuzz as a new hb-gpu module,
following the hb-raster / hb-vector library pattern.  The module
encodes glyph outlines into compact RGBA16I blobs for GPU rendering
using the Slug algorithm.

Fixes https://github.com/harfbuzz/harfbuzz/issues/5877
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 18:16:19 -06:00
Khaled Hosny 6f4c5cec30 13.2.1 2026-03-19 16:09:56 +02:00
Khaled Hosny 5ad3909af4 13.2.0 2026-03-19 00:45:24 +02:00
Khaled Hosny 70b812d8d2 13.1.1 2026-03-13 03:08:03 +02:00
Khaled Hosny a79a8257bb [meson] Add options for libpng and zlib 2026-03-12 17:36:39 +02:00
Behdad Esfahbod 3786b83fa6 [amalgamation] Add HB_HAS_SUBSET and share SVG helpers (#5835)
Add HB_HAS_SUBSET to hb-features.h and wire it through the same
HAVE_* feature plumbing used by the other HB_HAS_* macros.

Refactor the raster/vector SVG helper code so the duplicated
private helpers live in shared internal headers, avoiding
duplicate definitions when sources are combined in a single
translation unit.

Testing: meson compile -C build

Assisted-by: OpenAI Codex
2026-03-12 08:32:37 -06:00
Behdad Esfahbod a7a077d95c Merge branch 'main' into svgz 2026-03-11 23:55:41 -06:00
Behdad Esfahbod 4da15dadff [meson] Add raster/vector feature macros
Raster and vector libraries were configurable, but hb-features.h.in
did not expose matching HB_HAS_* macros.

Set HAVE_RASTER and HAVE_VECTOR during configuration, include both
features in the generated hb-features.h list, and add them to the
gtk-doc section index.

Testing: meson test -C build

Assisted-by: OpenAI Codex
2026-03-12 02:53:11 -03:00
Behdad Esfahbod 329c733e14 [meson] Report zlib in raster dependency summary
Show zlib in the configure summary next to libpng for the\nraster library dependencies.\n\nTesting:\n- meson setup build --reconfigure\n\nAssisted-by: OpenAI Codex
2026-03-11 15:50:38 -03:00
Behdad Esfahbod b7e4f5fd62 [raster] Support gzip-compressed SVG documents
The raster SVG path treated hb_ot_color_glyph_reference_svg()
blobs as plain XML, even though SVG table documents may
legally be gzip encoded. That caused hb-raster to reject
fonts that store compressed SVG documents.

Detect gzip payloads in the raster SVG renderer, reject
documents whose advertised uncompressed size exceeds
HB_SVG_MAX_DOCUMENT_SIZE, and inflate the rest through
zlib while keeping the same size cap enforced during
decompression. Plain SVG documents are also bounded by the
same 16 MiB limit.

Add a raster API regression that renders the existing
plain and compressed noto_handwriting SVG fixtures and
verifies identical output.

Testing:
- meson test -C build

Assisted-by: OpenAI Codex
2026-03-11 14:18:31 -03:00
Khaled Hosny 68d19d6964 13.1.0 2026-03-11 04:01:41 +02:00
Khaled Hosny 37efe6cc09 [meson] Show PNG is summary and re-order sections a bit 2026-03-09 18:18:52 +02:00
Behdad Esfahbod 9c6f4c201f raster: add PNG paint_image support via libpng 2026-03-09 18:18:52 +02:00
Khaled Hosny c298b921d6 13.0.1 2026-03-07 20:25:13 +02:00
Behdad Esfahbod ef8f53fd64 vector: gate localeconv_l and fall back to localeconv
Fixes https://github.com/harfbuzz/harfbuzz/issues/5791
2026-03-06 19:07:29 -07:00
Khaled Hosny a0fc099681 13.0.0 2026-03-04 22:28:50 +02:00
Khaled Hosny 332a7e39e7 [meson] Add subset, raster, and vector to build summary 2026-03-04 19:08:07 +02:00
Khaled Hosny d3114c18ac Add libharfbuzz_raster and libharfbuzz_vector to the libs target 2026-03-04 18:12:45 +02:00
Khaled Hosny b91d4b8d75 Add meson options to disable building harfbuzz-subset 2026-03-04 18:12:45 +02:00
Khaled Hosny b42511e071 12.3.2 2026-01-24 14:09:52 +02:00
Khaled Hosny abcb75a5d1 12.3.1 2026-01-20 23:59:40 +02:00
Behdad Esfahbod 7876939a57 [meson] Disable asserts in release builds
This is not the default for meson for backward-compat reasons.
We really want asserts off in production code.
2026-01-03 17:22:18 -07:00
Khaled Hosny 5a31dd02f0 12.3.0 2025-12-27 21:58:17 +02:00
Khaled Hosny 0426759f2b 12.2.0 2025-11-05 07:18:46 +02:00
Khaled Hosny cb59b347ca 12.1.0 2025-10-01 08:24:34 +03:00
Khaled Hosny 720f1a3b66 12.0.0 2025-09-28 00:55:46 +03:00
Khaled Hosny 7497c41474 11.5.1 2025-09-22 19:58:28 +03:00
Behdad Esfahbod bf8929fbfb 11.5.0 2025-09-12 13:32:38 -06:00
Khaled Hosny da17d4fda4 [meson] Remove "allow_fallback: true" from icu dependency
We don’t do this for any other dependency.
2025-09-07 02:48:00 +03:00
Khaled Hosny 0920469904 [meson] Simplify freetype dependency handling
Drop support for CMake-built FreeType which complicates things and makes
freetype dependency behave differently (it does not respect --wrap-mode,
for instance).

We don’t want to care about CMake-build dependencies, if they behave
differently that is on them.
2025-09-07 02:48:00 +03:00
Benjamin Gilbert 8a92b8f25a [meson] Drop CMake-built ICU support, fixing fallback to wrap >= 77.1-3
The WrapDB ICU wrap switched from the transitional "icu-uc = icuuc_dep"
syntax to the recommended "dependency_names = icu-uc", which apparently
broke our fallback path because we passed a components: argument to
dependency() for CMake (mesonbuild/meson#14979).  Per review guidance,
drop support for CMake-built ICU.
2025-09-04 14:44:48 +03:00
Khaled Hosny 22f77d48ab 11.4.5 2025-08-30 11:39:01 +03:00
Khaled Hosny 3420ef0212 11.4.4 2025-08-26 00:57:35 +03:00
Khaled Hosny 9ac9af2554 11.4.3 2025-08-23 11:48:18 +03:00
Khaled Hosny 6b754c3344 11.4.2 2025-08-21 08:40:14 +03:00
Behdad Esfahbod 4a1d4fbf0d harfbuzz.cc hb-shape (#5474)
* [util] Respect HB_NO_FEATURES_H macro

For builds using harfbuzz.cc and no features file.

* Kill PACKAGE_NAME and PACKAGE_VERSION

Remnants of autotools.

* [BUILD.md] Update
2025-08-17 17:12:22 -06:00
Behdad Esfahbod 6b285e6e94 11.4.1 2025-08-13 11:59:30 -06:00
Behdad Esfahbod 8c859f2528 11.4.0 2025-08-13 11:47:38 -06:00
Behdad Esfahbod 4df970fcbe Merge tag '11.3.3'
11.3.3
2025-07-26 14:07:11 -06:00
Behdad Esfahbod c3fcbffa65 11.3.3 2025-07-26 14:00:32 -06:00
Behdad Esfahbod 1a6e58b960 [meson.build] Message 2025-07-26 02:19:24 -06:00
Khaled Hosny bb3a839496 [kbts] Add dummy shaper
Just the infrastructure to build the shaper.
2025-07-23 21:39:23 +03:00
Behdad Esfahbod 4e3df1c138 11.3.2 2025-07-20 18:12:39 -06:00
Behdad Esfahbod 95a15d5313 11.3.1 2025-07-20 14:15:02 -06:00
Khaled Hosny 30e7af11ee 11.3.0 2025-07-20 21:40:37 +03:00
Behdad Esfahbod 6eb4ed6aee [meson] Disable some tests under -Dutilities=disabled
Fixes https://github.com/harfbuzz/harfbuzz/issues/5365
2025-06-14 09:24:44 -06:00
Behdad Esfahbod c936b22937 [rust] Update to HarfRuzz->HarfRust rename 2025-06-10 08:22:47 -06:00
Behdad Esfahbod 48d224e786 [algs] Make hb_sincos() generic to both float and double 2025-06-08 13:43:27 +03:00
Khaled Hosny 33a3f8de60 11.2.1 2025-05-12 19:51:07 +03:00
Khaled Hosny 39d7b55f75 [meson] Drop leftover “(experimental)” from DWrite option summary 2025-05-11 01:10:44 +03:00