Commit Graph
20650 Commits
Author SHA1 Message Date
Khaled Hosny cb59b347ca 12.1.0 2025-10-01 08:24:34 +03:00
Behdad Esfahbod 4a26e289f7 Add hb_ot_layout_lookup_collect_glyph_alternates() (#5367)
* [map] Massage operator << overloads

* [ot-layout] Add +hb_ot_layout_lookup_collect_glyph_alternates

To collect all glyph mapping from SingleSubst or AlternateSubst
lookups in one call.  Needed by FreeType autohinter for performance.

New API:
+hb_ot_layout_lookup_collect_glyph_alternates()

* [layout] Change hb_ot_layout_lookup_collect_glyph_alternates() API

https://github.com/harfbuzz/harfbuzz/pull/5367#discussion_r2149019638
2025-09-30 13:31:04 -06:00
Behdad Esfahbod 61b6a262cc [pragmas] Disable -Wuninitialized and -Wmaybe-uninitialized on gcc
Fixes https://github.com/harfbuzz/harfbuzz/issues/5589
CC https://github.com/harfbuzz/harfbuzz/pull/5367
2025-09-30 13:18:46 -06:00
Behdad Esfahbod af286b8f71 [Coverage] Simplify initialization 2025-09-30 13:00:36 -06:00
Behdad Esfahbod 164303139b [pragmas] Demote -Wuninitialized from error to warning (#5593)
I suspect a gcc false positive.

"Fixes" https://github.com/harfbuzz/harfbuzz/issues/5589
2025-09-29 21:00:28 -06:00
Behdad Esfahbod 37fd8c0b15 [alloc-pool] Fix alignment (#5592)
We were aligning on the bytes remaining. Align on actual
pointer.

Probably fixes https://github.com/harfbuzz/harfbuzz/issues/5591
2025-09-29 21:00:21 -06:00
dependabot[bot] 051a885c00 Bump github/codeql-action from 3.30.3 to 3.30.5 (#5590)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.30.3 to 3.30.5.
- [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/192325c86100d080feab897ff886c34abd4c83a3...3599b3baa15b485a2e49ef411a7a4bb2452e7f93)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-29 13:20:00 -06:00
Khaled Hosny 720f1a3b66 12.0.0 12.0.0 2025-09-28 00:55:46 +03:00
Qunxin Liu 0952bc0ac2 [subset] de-duplicate features (#5494) 2025-09-26 12:10:28 -04:00
Behdad Esfahbod 6a2453bb20 Reapply "[VARC] Graduate out of experimental" (#5588)
This reverts commit 673934f2ce.
2025-09-25 21:54:20 -04:00
Behdad Esfahbod 9b043da781 [shape] Use a buffer scratch flag for fraction slash (#5587)
* [shape] Use a buffer scratch flag for fraction slash

* Remove unused non-ascii scratch flag
2025-09-24 14:39:38 -06:00
Behdad Esfahbod 88844e2ed9 [rust] Tweak debugoptimized again
Now on par in perf with release, but nice stacktraces.
2025-09-24 13:28:28 -06:00
Behdad Esfahbod ba4f92f200 [rust] Change debugoptimized build to inherit dev instead of release
I was getting useless profiler stacks with the previous setup.
This one makes the debugoptimized build 30% slower than release
in one of my benchmarks, but at least we get useful stacktraces
by default.
2025-09-24 13:12:50 -06:00
Behdad Esfahbod fc7617251a [ValueFormat] comment 2025-09-24 12:42:53 -06:00
Behdad Esfahbod 9eb4318ea2 Fix fuzzer issue 2025-09-24 00:04:19 -06:00
Behdad Esfahbod 62ec647087 [shape] Use a buffer scratch flag for continuations (#5586)
Use it in form_clusters instead of ascii flag, for speedup.
2025-09-23 23:49:57 -06:00
Behdad Esfahbod 52eb959535 [rust] Don't use panic_immediate_abort (#5585)
It has changed. Use optimize_for_size which seems to have the
same size reduction effect.

Fixes https://github.com/harfbuzz/harfbuzz/issues/5584
2025-09-23 22:22:56 -06:00
Behdad Esfahbod d350cb833a Speed up ValueFormat len() calc 2025-09-23 20:34:13 -06:00
Behdad Esfahbod 88dfa2abd3 On gcc <= 12 don't use num fast path (#5578)
Fixes https://github.com/harfbuzz/harfbuzz/issues/5456
2025-09-23 20:34:02 -06:00
Behdad Esfahbod 3b1e9efb2b [bit-page] Remove leftover bits from iterator 2025-09-23 19:09:46 -06:00
Behdad Esfahbod 7750fc2cf2 [buffer] Remove HB_BUFFER_SCRATCH_FLAG_HAS_GLYPH_FLAGS (#5583)
It complicated correctness analysis. Remove it and always
propagate flags, which are much faster now anyway.
2025-09-23 18:56:53 -06:00
Behdad Esfahbod 2bcee1802f [shape] Fix up propagate-flags after previous changes (#5582) 2025-09-23 18:44:44 -06:00
Behdad Esfahbod c4ad58e3d5 [shape] Fix typo in propagate_flags 2025-09-23 18:32:42 -06:00
Behdad Esfahbod 73afc0033b Propagate flags speedup (#5581)
* [shape] Micro-opt

* [shape] Speed up propagate_flags
2025-09-23 18:30:06 -06:00
Qunxin Liu fdb80534e2 [subset-repacker] bug fix: copy markFilteringSet field if exists (#5579) 2025-09-23 15:32:41 -06:00
Behdad Esfahbod 5b2940d696 Merge pull request #5580 from harfbuzz/flight
Micro-opts
2025-09-23 16:00:14 -04:00
Behdad Esfahbod 98d14b4318 [chaincontext] Micro-optimize a conditional away 2025-09-23 13:32:15 -04:00
Behdad Esfahbod e3a5152b0e [buffer] Micro-opt next_glyphs() 2025-09-23 11:55:26 -04:00
Behdad Esfahbod 88b7a4f43f [set-digest] Comments 2025-09-23 11:23:03 -04:00
Behdad Esfahbod 516c35cfd5 [buffer-message] Disable "more" messages by default (#5577)
This was not suppoosed to be turned on by default, as it has a
performance overhead. Instead, tools like Crowbar should define
HB_BUFFER_MESSAGE_MORE to 1 when building HarfBuzz.
2025-09-23 08:13:28 -06:00
Behdad Esfahbod b2a6375b81 [ot-shape] Update update_digest() calls
Correction to ccfd1ae2d6
2025-09-22 17:31:11 -04:00
Behdad Esfahbod 3ce3853a96 Merge pull request #5575 from harfbuzz/apply-forward-speedup
[apply-forward] Speed up glyph skipping
2025-09-22 17:17:28 -04:00
Behdad Esfahbod b58efec228 Merge pull request #5576 from harfbuzz/buffer-digest-retain
[buffer] Retain digest in the buffer
2025-09-22 17:13:34 -04:00
Behdad Esfahbod eeb16bd4d3 [apply-forward] Speed up glyph skipping
6% speedup in Roboto-Regular benchmark.
2025-09-22 16:59:28 -04:00
Behdad Esfahbod ccfd1ae2d6 [buffer] Retain digest in the buffer
We don't have to reinitialize it for GPOS now, showing some
1.5% speedup on Roboto-Regular benchmark.

Over time we can change the various gsub_pauses to update the digest
in-place instead of returning true.
2025-09-22 16:49:29 -04:00
Behdad Esfahbod 7ec40c2b8b Merge pull request #5574 from harfbuzz/iup-speedup
Iup speedup
2025-09-22 15:02:01 -04:00
Behdad Esfahbod 19b026b319 [iup] Use a member pointer 2025-09-22 14:48:42 -04:00
Behdad Esfahbod 3477162043 [iup] Add an early exit 2025-09-22 14:45:42 -04:00
Behdad Esfahbod 1c7c3e50cc [iup] Micro-optimize
Doesn't matter.
2025-09-22 14:36:02 -04:00
Khaled Hosny 7497c41474 11.5.1 11.5.1 2025-09-22 19:58:28 +03:00
dependabot[bot] 61caa7bcc4 Bump hendrikmuhs/ccache-action from 1.2.18 to 1.2.19
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action) from 1.2.18 to 1.2.19.
- [Release notes](https://github.com/hendrikmuhs/ccache-action/releases)
- [Commits](https://github.com/hendrikmuhs/ccache-action/compare/63069e3931dedbf3b63792097479563182fe70d1...bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716)

---
updated-dependencies:
- dependency-name: hendrikmuhs/ccache-action
  dependency-version: 1.2.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 14:29:38 +02:00
dependabot[bot] 6cbe46ae3b Bump github/codeql-action from 3.30.1 to 3.30.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.30.1 to 3.30.3.
- [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/f1f6e5f6af878fb37288ce1c627459e94dbf7d01...192325c86100d080feab897ff886c34abd4c83a3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 14:29:08 +02:00
dependabot[bot] a84882ff65 Bump fonttools from 4.59.2 to 4.60.0 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.59.2 to 4.60.0.
- [Release notes](https://github.com/fonttools/fonttools/releases)
- [Changelog](https://github.com/fonttools/fonttools/blob/main/NEWS.rst)
- [Commits](https://github.com/fonttools/fonttools/compare/4.59.2...4.60.0)

---
updated-dependencies:
- dependency-name: fonttools
  dependency-version: 4.60.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 14:27:45 +02:00
Behdad Esfahbod fa7b7fd888 Merge pull request #5570 from harfbuzz/alloc-pool-improvements
[alloc-pool] Implement alignment
2025-09-18 09:31:05 -06:00
Behdad Esfahbod e1fd2beeec [alloc-pool] Reduce memory usage by reclaiming some discards 2025-09-18 11:18:09 -04:00
Behdad Esfahbod a22add2530 [alloc-pool] Implement alignment 2025-09-18 11:04:06 -04:00
Behdad Esfahbod 08ff720042 [set] Speed up iterator 2025-09-18 10:57:43 -04:00
Behdad Esfahbod 230243378c [instancer/iup] Reduce mallocs again
Perhaps shrink() shouldn't default to realloc. Working on it.
2025-09-17 15:32:46 -04:00
Behdad Esfahbod 80a6f4b65e Merge pull request #5569 from harfbuzz/instancer-opt-more
Instancer opt more
2025-09-16 22:32:13 -06:00
Behdad Esfahbod 2be836c151 Revert "[instancer] Preallocate coordinate maps from alloc pool as well"
This reverts commit 3f71afe760.

Slowed things down.
2025-09-17 00:31:50 -04:00