Commit Graph
15884 Commits
Author SHA1 Message Date
Behdad Esfahbod 6add360dbf Fix check libraries (#5812)
* Centralize check library lists

* Hide internal raster helper symbols
2026-03-09 22:37:07 -06:00
Behdad Esfahbod 9058176117 Harden raster PNG error handling 2026-03-10 01:20:37 -03:00
Behdad Esfahbod eaf002624d Factor custom object destroy helpers 2026-03-10 01:04:11 -03:00
Behdad Esfahbod 79646aae36 Fix raster and vector destroy ordering 2026-03-10 01:00:31 -03:00
Behdad Esfahbod a940e06ff4 Use push_or_fail in raster SVG paths 2026-03-09 23:09:41 -03:00
Behdad Esfahbod 2329724c1e Fix hb_vector push failure checks 2026-03-09 23:08:02 -03:00
Behdad Esfahbod 9ffd6815b0 Harden raster paint stack allocation failures 2026-03-09 22:46:38 -03:00
Behdad Esfahbod 31b23afc9c Fix raster paint surface cache leak 2026-03-09 22:33:04 -03:00
Behdad Esfahbod dfc64f02c0 raster: add PNG serialization API for images 2026-03-09 23:37:36 +02:00
Quang LuongCodex (AI assistant)Gemini (AI assistant)
7b7d54e33b [arabic] Improve stch measurement pass (#5808)
Use checked arithmetic when calculating the number of extra glyphs
needed during stch processing. Includes a new hb_unsigned_add_overflows
helper in hb-algs.hh.

Co-authored-by: Codex (AI assistant)
Co-authored-by: Gemini (AI assistant)
2026-03-09 15:02:38 -06:00
Behdad Esfahbod fc6eaa5400 [svg] Use std::isfinite
Fixes https://github.com/harfbuzz/harfbuzz/issues/5806
2026-03-09 15:11:23 -03:00
Behdad Esfahbod 6f198a9e39 [raster] Change image reconstruction from box to bilinear
https://github.com/harfbuzz/harfbuzz/pull/5798#issuecomment-4023007382
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 0e35bd4896 [docs] Improve code blocks
GTK-Doc does not seem to support mark down code blocks markup. Use the
other way, and mark the language as plain text because code coloring
looks a bit ugly.
2026-03-08 00:03:57 +02:00
Khaled Hosny c298b921d6 13.0.1 2026-03-07 20:25:13 +02:00
Behdad Esfahbod 176d374b47 Raster packed (#5795)
* raster: use hb_packed_t for unaligned BGRA32 access

* algs: support encapsulated hb_packed_t and fix raster callsites
2026-03-07 09:59:47 -07:00
Behdad Esfahbod f1098701e1 raster-paint: clear stale surfaces on render failure 2026-03-06 23:05:31 -03:00
Behdad Esfahbod c6108e9633 raster-paint: handle reflected transforms in rectangle clip test 2026-03-06 23:05:16 -03:00
Behdad Esfahbod 1b744652fe raster-paint: guard BGRA image dimensions and blob size math 2026-03-06 23:04:58 -03:00
Behdad Esfahbod 0109116383 vector: gate localeconv_l and fall back to localeconv
Fixes https://github.com/harfbuzz/harfbuzz/issues/5791
2026-03-06 22:47:52 -03:00
Behdad Esfahbod 31af2b94a0 raster: avoid unsigned wrap in clip-space sampling coords 2026-03-06 22:42:18 -03:00
Behdad Esfahbod 8db165abf6 raster: advance radial sample coords on skipped pixels 2026-03-06 22:39:04 -03:00
Khaled Hosny a0fc099681 13.0.0 2026-03-04 22:28:50 +02:00
Behdad Esfahbod 19f54f2cfd Merge pull request #5784 from harfbuzz/downgrade-cff-hintmask
[subset] Fix CFF2->CFF1 specializer hintmask encoding
2026-03-04 12:55:54 -07:00
Khaled Hosny 1cd38d1c56 [meson] Add thread_dep to harfbuzz-subset as well
Adapted patch from:
https://git.libreoffice.org/core/+/8f6d4fb1a4bbb689ca748dd033ceaa87d94a1a3d%5E%21
2026-03-04 19:58:32 +02:00
Khaled Hosny 64ad598432 [vector] Move documentation to .cc when applicable 2026-03-04 19:04:12 +02:00
Behdad EsfahbodandClaude Opus 4.6 6a1c028a61 [buffer] Add hb_buffer_changed() (#5755)
* [buffer] Add hb_buffer_changed()

To be called by message callbacks if they modify buffer glyph indices,
to update internal caches (currently the buffer digest).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [buffer] Implement changed() callback and hook up to OT shaper.

* Only install buffer changed() callback if messaging enabled

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 09:16:54 -07:00
Khaled Hosny b91d4b8d75 Add meson options to disable building harfbuzz-subset 2026-03-04 18:12:45 +02:00
Khaled Hosny 72ee0c2dfd Add meson options to disable building harfbuzz-vector 2026-03-04 18:12:45 +02:00
Khaled Hosny 9520926168 Add meson options to disable building harfbuzz-raster 2026-03-04 18:12:45 +02:00
Behdad Esfahbod 2c3a86ac06 [vector] Fix SVG Y translation sign 2026-03-03 15:45:25 -03:00
Behdad Esfahbod c8b6b6895c Minor generator provenance change 2026-03-03 06:27:43 -03:00
Behdad Esfahbod 47097cf697 Add Rust output to vowel constraints generator 2026-03-03 06:18:08 -03:00
Behdad Esfahbod aca9c03470 Add Rust output to tag table generator 2026-03-03 06:12:35 -03:00
Behdad Esfahbod 440aa7960a Optimize tag table language mapping layout 2026-03-03 05:57:33 -03:00
Behdad Esfahbod 93175405e9 Add Rust output to emoji generator 2026-03-03 05:38:25 -03:00
Behdad Esfahbod 80c5b48db0 Add Rust output to Arabic and Indic generators 2026-03-03 05:28:38 -03:00
Behdad Esfahbod 9c0d20edad Regenerate Unicode tables with packtab annotations 2026-03-02 15:57:03 -03:00
Behdad Esfahbod d83b9ce0bd Improve Unicode tables regeneration workflow 2026-03-02 15:39:57 -03:00
Behdad Esfahbod 4bf74ddbe2 Update Unicode tables makefile for Arabic PUA 2026-03-02 15:36:46 -03:00
Behdad Esfahbod 172938b641 Use packtab for Indic shaper table 2026-03-02 15:11:59 -03:00
Behdad Esfahbod 965fe2fa58 Clean up Arabic PUA packtab symbols 2026-03-02 13:49:56 -03:00
Behdad Esfahbod 3c5bcbb687 [arabic-joining] Rename table
Fixes clash.
2026-03-02 01:53:22 -03:00
Behdad Esfahbod 6e778ea051 Use packtab for Arabic joining table 2026-03-02 01:39:16 -03:00
Behdad Esfahbod 5f36467522 [arabic] Change a couple enum values
No semantic change.
2026-03-02 01:04:13 -03:00
Ramin Farajpour Cami f391d3ea2a [buffer] Disallow hb_buffer_set_message_func during callback (#5766)
Reject re-entrant calls to hb_buffer_set_message_func() when
called from within a message callback (message_depth > 0).

Previously, calling hb_buffer_set_message_func() from inside a
message callback would destroy the old user_data via the destroy
callback while the current callback still held a reference to it,
leading to a use-after-free.

Fixes: GHSA-h4c3-cvr5-ccq2
2026-02-27 08:26:13 -07:00
Behdad Esfahbod e550176a49 [docs] Normalize custom palette API wording across paint/raster/vector 2026-02-26 21:08:00 -03:00
Behdad Esfahbod b7e019973c [raster] Keep custom palette docs out of hb-raster.h 2026-02-26 17:17:18 -03:00
Behdad Esfahbod 8dc76787fc [raster] Align custom palette API docs with vector 2026-02-26 17:16:08 -03:00
Behdad Esfahbod 781bcead34 [vector] Document and wire custom palette paint APIs 2026-02-26 17:13:03 -03:00