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
eri and Khaled 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
Behdad Esfahbod
b86f22c11a
[README] Remove Canva
...
Unclear if they use HB, not rust libraries.
2025-08-20 15:13:37 -06:00
Behdad Esfahbod
00492ec7df
[harfrust] Pin to 0.1.2 for relase
2025-08-20 13:48:11 -06:00
Behdad Esfahbod
c32ea5536f
[avar] Fix version2 handling ( #5485 )
2025-08-20 13:15:58 -06:00
Behdad Esfahbod
724249ff0f
Simplify a return after recent changes ( #5484 )
2025-08-20 00:54:05 -06:00
Behdad Esfahbod
8bdedb3b9e
Limit external caches ( #5483 )
...
* Revert "[external_cache] Remove a conditional (#5471 )"
This reverts commit 9794ad9e00 .
* Limit external_cache to 8 subtables per lookup
2025-08-20 00:27:41 -06:00
Behdad Esfahbod
2254574384
Match positions no malloc ( #5481 )
...
* Reduce allocation of match_positions by caching one in ctx
* Use a stack-array for small match-positions
This surgically enables stack-backed storage in vector.
* Handle match-positions alloc failure
And make allocations unchecked.
* Clean up CFF hack to use static storage in vector
* Fixup for match_positions allocations
* Fix vector handling of foreign arrays memory management
2025-08-20 00:06:00 -06:00
Behdad Esfahbod
6a4497566c
[aat] Comment
2025-08-18 18:52:02 -06:00
Behdad Esfahbod
76555c5d91
[README] Add more documents
2025-08-18 17:34:19 -06:00
Behdad Esfahbod
04f1a43532
Add a typedef
2025-08-18 16:57:59 -06:00
dependabot[bot]
9f38e91292
Bump ninja from 1.11.1.4 to 1.13.0 in /.ci
...
Bumps [ninja](https://github.com/scikit-build/ninja-python-distributions ) from 1.11.1.4 to 1.13.0.
- [Release notes](https://github.com/scikit-build/ninja-python-distributions/releases )
- [Changelog](https://github.com/scikit-build/ninja-python-distributions/blob/master/HISTORY.rst )
- [Commits](https://github.com/scikit-build/ninja-python-distributions/compare/1.11.1.4...1.13.0 )
---
updated-dependencies:
- dependency-name: ninja
dependency-version: 1.13.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-18 19:13:22 +03:00
dependabot[bot]
9483ed5d5b
Bump github/codeql-action from 3.29.8 to 3.29.9
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.29.8 to 3.29.9.
- [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/76621b61decf072c1cee8dd1ce2d2a82d33c17ed...df559355d593797519d70b90fc8edd5db049e7a2 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 3.29.9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-18 19:12:32 +03:00
dependabot[bot]
7300bdf813
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-18 19:11:59 +03:00
dependabot[bot]
2f75c57ef4
Bump fonttools from 4.57.0 to 4.59.1 in /.ci
...
Bumps [fonttools](https://github.com/fonttools/fonttools ) from 4.57.0 to 4.59.1.
- [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.57.0...4.59.1 )
---
updated-dependencies:
- dependency-name: fonttools
dependency-version: 4.59.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-18 18:16:24 +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
68c7cfff43
[util] Don't specify helper-subset.hh ( #5473 )
...
Not needed I believe.
2025-08-17 16:57:32 -06:00
Behdad Esfahbod
c6153c738f
[buffer] Micro-optimize next_glyph() ( #5472 )
2025-08-16 16:52:02 -06:00
Behdad Esfahbod
9794ad9e00
[external_cache] Remove a conditional ( #5471 )
2025-08-16 15:51:05 -06:00
Behdad Esfahbod
96f3cae59e
Revert "[set-digest] Branch-free tests ( #5469 )" ( #5470 )
...
This reverts commit a4d4c41023 .
That commit had slowed down clang by 3% while sped up gcc by 3%.
Revert, to keep the code *intention* clear. Rely on compiler
to avoid branches if it sees fit.
2025-08-16 15:02:37 -06:00
Behdad Esfahbod
a4d4c41023
[set-digest] Branch-free tests ( #5469 )
2025-08-16 13:55:46 -06:00
Behdad Esfahbod
368598b5bd
Increase match_positions stack allocation from 4 to 8 ( #5468 )
...
Slight speedup on NotoNastaliq.
2025-08-16 00:38:42 -06:00
Behdad Esfahbod
0e6e18e74f
Rename a method
2025-08-15 14:27:33 -06:00
Behdad Esfahbod
0a257b0188
[gen-ucd-table] Rust clippy
2025-08-15 00:54:52 -06:00
Behdad Esfahbod
03d516f860
[ucd] Change compression level from 5 to 3 ( #5466 )
...
3kb bigger binary size. 1% faster in Roboto.
2025-08-15 00:52:44 -06:00
Behdad Esfahbod
dae2c8bbbd
[ligature] Add a set-digest on the second component ( #5464 )
2025-08-14 22:26:40 -06:00
Behdad Esfahbod
8268473a02
Add external_cache_create separate from cache_func ( #5463 )
...
* Add external_cache_create separate from cache_func
* Simplify cache_func_t signature
* Rename a cache type
* Rename another cache type
2025-08-14 21:57:19 -06:00
Behdad Esfahbod
cf614fc85d
[LigatureSet] Use slow path only if <= 1 ligatures ( #5462 )
2025-08-14 16:23:45 -06:00
Behdad Esfahbod
bbc2e0d0b5
[harfrust] Scale using int64 instead of float ( #5461 )
...
Like hb-font.hh does.
2025-08-14 16:12:59 -06:00
Behdad Esfahbod
354c6a17b8
[harfrust] Remove one function call ( #5460 )
...
lol. That's how desperate we are now.
2025-08-14 16:01:44 -06:00
Behdad Esfahbod
75044854a8
[harfrust] Update to latest API
2025-08-14 11:24:19 -06:00
Behdad Esfahbod
53cd214e83
[harfrust] Use buffer.ensure() ( #5459 )
2025-08-14 10:24:21 -06:00