Commit Graph
20481 Commits
Author SHA1 Message Date
Behdad Esfahbod e36b7a3f5d util: add PNG output support to hb-raster 2026-03-09 23:37:36 +02: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
Khaled Hosny 37efe6cc09 [meson] Show PNG is summary and re-order sections a bit 2026-03-09 18:18:52 +02: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
dependabot[bot] 544864caa7 Bump github/codeql-action from 4.32.4 to 4.32.6
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.32.4 to 4.32.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/89a39a4e59826350b863aa6b6252a07ad50cf83e...0d579ffd059c29b07949a3cce3983f0780820c98)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.32.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 13:26:15 +02:00
Khaled Hosny 0faf041ef7 [man] Add hb-raster, and hb-vector to “See also” section 2026-03-08 00:03:57 +02:00
Khaled Hosny f5190a73aa [usermanual] Document hb-info, hb-raster, and hb-vector 2026-03-08 00:03:57 +02:00
Khaled Hosny 5408e599f6 [usermanual] Move code blocks inside list item 2026-03-08 00:03:57 +02:00
Khaled Hosny c27ef57976 [usermanual] Improve program listings
Content inside <programlisting> tags is sensitive to white space, and the
extra indentation appear in the output.
2026-03-08 00:03:57 +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 c4eafe606c [docs] Move hb-raster and hb-vector to their own section 2026-03-08 00:03:57 +02:00
Khaled Hosny 1ccd8e5395 [util] Install hb-raster 2026-03-07 22:19:06 +02:00
Khaled Hosny c298b921d6 13.0.1 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 2c29ee0483 Merge pull request #5793 from harfbuzz/raster-fixes
Raster fixes
2026-03-07 08:37:04 -07:00
Behdad Esfahbod 20f8e7d61c Merge branch 'main' into raster-fixes 2026-03-06 19:07:55 -07: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
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
Ze Sheng 3db272507d [fuzzer] Fix hb-set-fuzzer reading pointer address instead of input data (#5786)
reinterpret_cast<const instructions_t &>(data) reads the bytes of the
pointer variable itself (stack address, determined by ASLR), not the
fuzzer input buffer. This makes operation and first_set_size effectively
uncontrollable by the fuzzer.

Fix by dereferencing: reinterpret_cast<const instructions_t &>(*data)

This also removes the #pragma suppressing -Wstrict-aliasing, which was
warning about exactly this problem.

Coverage comparison (10-min libFuzzer run):
- Original: 15 lines (0.05%), 2 functions
- Fixed:   486 lines (1.47%), 144 functions (29x improvement)
2026-03-05 07:49:51 -07:00
Behdad Esfahbod 4191cf20c0 Fix -Wdouble-promotion warnings
Fixes https://github.com/harfbuzz/harfbuzz/issues/5785
2026-03-05 01:24:29 -03:00
Khaled Hosny 381b5d7cd4 Typo [ci skip] 2026-03-04 22:40:59 +02:00
Khaled Hosny a0fc099681 13.0.0 13.0.0 2026-03-04 22:28:50 +02:00
Behdad Esfahbod 451f32c88e test/fuzzing: rename record-shape script 2026-03-04 17:11:12 -03: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
Behdad Esfahbod b7846647e4 Merge pull request #5781 from harfbuzz/better-fuzzing
Better fuzzing
2026-03-04 10:52:06 -07:00
Behdad Esfahbod d8d5068341 Fix shape fuzzer build 2026-03-04 14:33:24 -03:00
Behdad Esfahbod f111ed9d67 Add shared shape fuzzer seed support 2026-03-04 14:17:00 -03:00
Khaled Hosny 332a7e39e7 [meson] Add subset, raster, and vector to build summary 2026-03-04 19:08:07 +02:00
Behdad Esfahbod 638ae0edc8 Support comment-prefixed fuzzing seeds 2026-03-04 14:07:40 -03:00
Behdad Esfahbod 6913fd88b8 [fuzzing] Add --downgrade-cff seed using new facilities 2026-03-04 14:07:08 -03:00
Khaled Hosny 64ad598432 [vector] Move documentation to .cc when applicable 2026-03-04 19:04:12 +02:00
Behdad Esfahbod 7905d59aae Adjust subset seed recorder output paths 2026-03-04 13:59:15 -03:00
Behdad Esfahbod 7672d6bd52 [fuzzing] Add test for --downgrade-cff 2026-03-04 13:58:38 -03:00
Behdad Esfahbod c4ef89c63d Add extended hb-subset fuzzer seed recorder 2026-03-04 13:56:40 -03: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 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 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 3a8f96efa0 [util] Use SVG-safe extents overlay colors in hb-vector 2026-03-03 17:28:58 -03:00
Behdad Esfahbod 1936dd4ce5 [util] Scale hb-vector stroke width with font size 2026-03-03 17:26:11 -03:00