Commit Graph
19576 Commits
Author SHA1 Message Date
Khaled Hosny 49ac0df6ba [meson] Add graphite2 wrap file 2025-09-07 02:48:00 +03: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 01d4fff167 [meson] Add ICU wrap 2025-09-04 14:44:48 +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
Behdad Esfahbod d94851e56d [rust] Use inherited codegen-units=1 in debugoptimized build
It makes significant (30% in Nastaliq benchmark) difference.
2025-09-03 11:52:51 -06:00
Qunxin Liu cb4548d3c5 [subset] always generate AdvMap (#5524) 2025-09-02 15:58:00 -06:00
Qunxin Liu 77d073044e [subset] fix HVAR encoding width (#5523) 2025-09-02 15:40:51 -06:00
Behdad Esfahbod 12ec668212 [buffer] Micro-optimize set_masks
Somehow this specialization loop was in HarfRust / RustyBuzz.
2025-09-02 14:21:57 -06:00
Behdad Esfahbod 598da8c888 [buffer] Add some buffer op accounting to a few methods (#5522)
Should fix a fuzzer-found issue, now that we have increased
most buffer limits.
2025-09-02 14:21:08 -06:00
Behdad Esfahbod a89c36e0d9 [GPOS/kerx] Support attaching marks to bases after them (#5520)
See comments. Fuzzer found. I'm surprised this was not discovered
before though. I hope I have not missed anything.

Fixes https://oss-fuzz.com/testcase-detail/6399443634290688
2025-09-02 13:05:11 -06:00
Jordan 682a2c37c6 [cmake] Fix missing sources (#5519) 2025-08-31 15:50:15 -06:00
Khaled Hosny 22f77d48ab 11.4.5 11.4.5 2025-08-30 11:39:01 +03:00
Behdad Esfahbod 6d1c70bfc3 Remove unused code 2025-08-29 17:09:00 -06:00
Behdad Esfahbod 01072c5c37 [harfrust] Require 0.2.0 2025-08-29 13:19:59 -06:00
Behdad Esfahbod c61a4f26a0 [GPOS] Micro-optimize offset propagation 2025-08-29 02:11:52 -06:00
Behdad Esfahbod cb8b47ebcf [kern] Use reset_fast 2025-08-29 00:08:28 -06:00
Behdad Esfahbod 772279df44 [utf] inline some 2025-08-28 15:58:39 -06:00
Behdad Esfahbod c6e3f5a82c [aat] Reverse buffer only when necessary (#5516) 2025-08-27 16:41:25 -06:00
Behdad Esfahbod 141df8b97f [buffer] Adjust inlining 2025-08-27 16:09:35 -06:00
Behdad Esfahbod ff8d8e4474 Fixup 2025-08-27 15:36:48 -06:00
Behdad Esfahbod 1091b8a952 [shape-fallback] Adjust inlining 2025-08-27 15:35:26 -06:00
Behdad Esfahbod bc6eba9407 Fix kerx attachment shaping issues (#5515)
* [ot-shape] Don't zero offsets of default-ignorables

Part of fixing https://github.com/harfbuzz/harfbuzz/issues/5514

* [ot-shape] Propagate chain offsets in opposite direction if RTL

Part of fixing https://github.com/harfbuzz/harfbuzz/issues/5514
2025-08-27 13:29:15 -06:00
Behdad Esfahbod 7d936359a2 [aat] Clear cached buffer glyph set (#5508)
Ouch.
2025-08-26 01:46:34 -06:00
Behdad Esfahbod 12b0f08606 [morx] Move a few initializations later (#5507) 2025-08-26 01:29:50 -06:00
Behdad Esfahbod 8e2e18fe37 [aat] Rename a few members (#5506) 2025-08-25 23:55:30 -06:00
Behdad Esfahbod 653b77229e [kern] Simplify Format3 collect_glyphs() (#5505)
No idea why I wrote it that way initially.
2025-08-25 20:15:43 -06:00
Behdad Esfahbod 1e5b65b798 [aat] Remove unused code (#5504) 2025-08-25 19:55:13 -06:00
Behdad Esfahbod 8f4778d2a4 [aat] Implement collect_glyphs_filtered for LookupFormat10 (#5503)
Oops.
2025-08-25 19:49:48 -06:00
Khaled Hosny 3420ef0212 11.4.4 11.4.4 2025-08-26 00:57:35 +03:00
Khaled Hosny b7c55efe0d [subset] Fix shaping behaviour when pruning empty mark sets
See https://github.com/harfbuzz/harfbuzz/issues/5499
2025-08-26 00:45:26 +03:00
dependabot[bot] f3de8b4bda Bump meson from 1.7.0 to 1.9.0 in /.ci
Bumps [meson](https://github.com/mesonbuild/meson) from 1.7.0 to 1.9.0.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.7.0...1.9.0)

---
updated-dependencies:
- dependency-name: meson
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-26 00:42:11 +03:00
dependabot[bot] 3a7b7559fa Bump github/codeql-action from 3.29.9 to 3.29.11
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.29.9 to 3.29.11.
- [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/df559355d593797519d70b90fc8edd5db049e7a2...3c3833e0f8c1c83d449a7478aa59c036a9165498)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 23:28:40 +03:00
Behdad Esfahbod 6b62d3678b [ligature-cache] Handle case of ligature with no components (#5500)
In the cache with "seconds" set-digest.
2025-08-25 14:02:59 -06:00
Behdad Esfahbod 724ae78d4c Revert "[check-glyph-properties] Cache current lookup-prop's matching result." (#5497)
This reverts commit 5b6836e108.

This broke some shaping, namely, "j̣̈́J̣J̈́" with Google Sans, and is quite
tricky to debug.  Since this slowed down everything other than Duployan,
and we also decided NOT to port it to HarfRust, just revert and keep the
simpler and more reasonable code logic.
2025-08-25 13:14:43 -06:00
Steve Lhomme 567dde6209 [coretext] fix unsigned integer comparison (#5496)
Comparing a CFIndex with an unsigned int results in a compilation error on iOS armv7 targets:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -Isrc/libharfbuzz.a.p -Isrc -I../src -I. -I.. -I/Volumes/External/videolanci/builds/vCi6yJP3/0/robUx4/vlc/contrib/armv7-iphoneos/include/freetype2 -I/Volumes/External/videolanci/builds/vCi6yJP3/0/robUx4/vlc/contrib/armv7-iphoneos/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O2 -g -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -mios-version-min=9.0 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -Werror=partial-availability -fno-stack-check -g -O2 -MD -MQ src/libharfbuzz.a.p/hb-coretext-font.cc.o -MF src/libharfbuzz.a.p/hb-coretext-font.cc.o.d -o src/libharfbuzz.a.p/hb-coretext-font.cc.o -c ../src/hb-coretext-font.cc
../src/hb-coretext-font.cc:413:11: error: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'unsigned int' [-Werror,-Wsign-compare]
  if (len > size - 1)
      ~~~ ^ ~~~~~~~~
1 error generated.
2025-08-25 09:50:54 -06:00
Behdad Esfahbod 029eb2155a [harfrust] Encode pre-context in the correct order (#5495)
https://github.com/harfbuzz/harfrust/issues/205
2025-08-23 18:43:50 -06:00
Khaled Hosny 9ac9af2554 11.4.3 11.4.3 2025-08-23 11:48:18 +03:00
Behdad Esfahbod 04953dca8d [vector] Enable set_storage only on trivial types (#5493) 2025-08-21 23:00:37 -06:00
Behdad Esfahbod 7ba05752c6 [harfrust] Fix compile with clang 2025-08-21 19:38:10 -06:00
Behdad Esfahbod 5fddacc158 [harfrust] Set buffer pre/post-context (#5492)
* [harfrust] Set buffer pre/post-context

Fixes the failing item-context tests. Yay.

* Bump MSRV
2025-08-21 12:54:49 -06:00
eriandKhaled Hosny e80b6d1145 [ot-math] Fix constant scaling when checking if the font is Cambria Math (#5490)
Co-authored-by: Khaled Hosny <khaled@aliftype.com>
2025-08-21 11:24:35 -06:00
jfkthame c1a75d36c7 Avoid UB if shrink_vector(0) is called on an already-empty vector (#5491)
Fixes #5489
2025-08-21 10:38:04 -06:00
Khaled Hosny 2e279ca594 [ci] Create final releases not draft [ci skip] 2025-08-21 09:19:29 +03:00
Behdad Esfahbod 6c42e2d707 [buffer] Consume ops in shift_forward (#5488)
Makes failing infinite-recursion fonts and stuff much faster.
2025-08-21 00:04:56 -06:00
Khaled Hosny 6b754c3344 11.4.2 11.4.2 2025-08-21 08:40:14 +03:00
Khaled Hosny b9f91d6a1a [ci] Hopefully this fixes uploading Windows binaries [ci skip]
Use merge-multiple so that each artifact is not extracted to a separate
directory, which we didn’t expect or need since the files have unique
names.
2025-08-21 08:26:40 +03:00
Behdad Esfahbod b51de93600 Remove duplicate buffer->leave call (#5487)
* Remove duplicate buffer->leave call

hb-shape.cc does it for us.

* Fail shaping if max len reached

* Increase buffer limits

https://github.com/harfbuzz/harfrust/issues/107

* Remove shaping_failed; fail in buffer.successful
2025-08-20 23:15:46 -06:00
Behdad Esfahbod b790eb9ee4 [gen-use-table] Generate --rust output
Used for HarfRust.
2025-08-20 19:12:24 -06:00
Behdad Esfahbod 14227e16ba Update use (#5486)
* [use-table] Regenerate with latest packtab

* [gen-use-table] Remove unused code

Copied from gen-indic-table.
2025-08-20 19:07:51 -06:00