Behdad Esfahbod
8eb2f07cc8
Merge branch 'main' into HVF
2025-05-26 13:23:08 -06:00
Behdad Esfahbod
df111468b0
[ft] Fix crash on some old versions of freetype
2025-05-26 13:16:29 -06:00
dependabot[bot]
e9276cf83d
Bump setuptools from 80.7.1 to 80.8.0 in /.ci
...
Bumps [setuptools](https://github.com/pypa/setuptools ) from 80.7.1 to 80.8.0.
- [Release notes](https://github.com/pypa/setuptools/releases )
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/setuptools/compare/v80.7.1...v80.8.0 )
---
updated-dependencies:
- dependency-name: setuptools
dependency-version: 80.8.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-26 21:50:18 +03:00
Khaled Hosny
2cd19d4b45
[meson] Fix build with -Dfuzzer_ldflags on meson >= 1.4.0
...
The failing-alloc.c file is appended to various hb_sources_* as a
string, but on >= 1.4.0 we call full_path() on the sources, and this
works only with file objects.
Fixes https://github.com/harfbuzz/harfbuzz/pull/5340
2025-05-26 13:30:47 +03:00
Behdad Esfahbod
ff7c1e483d
[ft] Make it work with FreeType < 2.8
2025-05-25 14:54:51 -06:00
Behdad Esfahbod
31653e6bc1
Revert "[ItemVariationStore] Rewrite the main loop"
...
This reverts commit 57b636fb13c7ef55d6f435b8f560df653f02612e.
2025-05-25 14:54:51 -06:00
Behdad Esfahbod
8e0243c492
[ItemVariationStore] Rewrite the main loop
...
Slows down slightly. Going to revert.
2025-05-25 14:54:51 -06:00
Ozkan Sezer
bd6b30b186
cmake: always set inline hidden flag.
...
This practically reverts commit ac92ed7d68 :
minimum required cmake version is more than new enough.
2025-05-24 18:24:36 +03:00
Behdad Esfahbod
1744743a48
[ot-font] Remove comment
...
We do NOT want to pass gvar_cache to VARC, since VARC uses
different coordinates for different glyphs, so the cache
values will be wrong.
2025-05-23 19:21:04 -06:00
Behdad Esfahbod
7e353d3718
[test] Remove u8 prefix from strings
...
No idea how/why this got in there to begin with.
2025-05-23 14:31:58 -06:00
Garret Rieger
fac64e5838
[instancer] add a test which checks calculation of vmtx tsb during CFF2 instancing.
2025-05-23 12:47:23 -06:00
Garret Rieger
cb53f4b5aa
[instancer] fix tsb calculation for CFF2 fonts.
...
tsb was being set equal to the y max of each glyph, which is not correct. Instead calculate tsb as vorg.y - ymax.
2025-05-23 12:47:23 -06:00
Behdad Esfahbod
e69b3c4159
[ItemVariationStore] Speed up get_delta
...
Another 15% in the same benchmark.
2025-05-22 20:41:36 -06:00
Behdad Esfahbod
227a5e11ee
[VarRegionList] Inline evaluate() cache lookup
...
Seeing 45% speedup in benchmark-font glyph_h_advances benchmark
on a mega variable font!
2025-05-22 20:12:01 -06:00
Jeff McKenna
c200418f15
remove hb-ot-shape-closure
2025-05-22 07:45:04 -07:00
Behdad Esfahbod
e1dcc454f1
[gvar] Use cached scratch in get_extents
...
Makes it alloc-free.
15% faster on benchmark-font glyph_extents RobotoFlex var benchmark.
2025-05-21 16:01:44 -06:00
Behdad Esfahbod
3e93786cc4
[ot-layout] More (nullable) instead of (optional)
...
Honestly I don't know why we should ever use (optional).
Looks like (nullable) applies to all (optional) and some more
places.
https://gi.readthedocs.io/en/latest/annotations/giannotations.html
2025-05-21 14:50:35 -06:00
Behdad Esfahbod
4a8a3e12cf
[ot-layout] Docs
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5335
2025-05-21 14:45:42 -06:00
Behdad Esfahbod
1e0b6a5c5d
Merge branch 'main' into HVF
2025-05-21 14:43:47 -06:00
Behdad Esfahbod
87f2f9b5e0
[ft] Reset some FT properties properly
2025-05-21 14:43:20 -06:00
Behdad Esfahbod
443ef5f02c
[ft] Regain some performance
2025-05-21 14:29:01 -06:00
Behdad Esfahbod
a13fd9ae68
Merge branch 'main' into HVF
2025-05-21 12:23:19 -06:00
Behdad Esfahbod
88b9feb917
[benchmark-font] Allow specifying variations on cmdline
2025-05-20 20:40:40 -06:00
Behdad Esfahbod
60c4b9cb61
[benchmark-font] Minor refactor
...
In prep for accepting arbitrary variations on the cmdline.
2025-05-20 20:36:39 -06:00
Behdad Esfahbod
7165f1171d
[var] Micro-optimize
2025-05-20 17:09:58 -06:00
Behdad Esfahbod
7357f6e559
[rust] Update deps
2025-05-20 15:19:13 -06:00
dependabot[bot]
3a46a1b548
Bump setuptools from 80.4.0 to 80.7.1 in /.ci
...
Bumps [setuptools](https://github.com/pypa/setuptools ) from 80.4.0 to 80.7.1.
- [Release notes](https://github.com/pypa/setuptools/releases )
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/setuptools/compare/v80.4.0...v80.7.1 )
---
updated-dependencies:
- dependency-name: setuptools
dependency-version: 80.7.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-19 15:29:51 +03:00
dependabot[bot]
89ac87e8e2
Bump github/codeql-action from 3.28.17 to 3.28.18
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.28.17 to 3.28.18.
- [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/60168efe1c415ce0f5521ea06d5c2062adbeed1b...ff0a06e83cb2de871e5a09832bc6a81e7276941f )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 3.28.18
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-19 13:41:41 +03:00
Behdad Esfahbod
19fd08f0ae
[TupleVariation] Inline the hot methods
2025-05-18 11:31:41 -07:00
Behdad Esfahbod
45a22dfcb8
[rust] Fix newer clippy fix
2025-05-17 11:27:26 -07:00
Behdad Esfahbod
eeabc29c69
[test/subset] Fix test-runner when ots is present
2025-05-17 11:24:51 -07:00
Behdad Esfahbod
86c6da3ad1
Merge pull request #5328 to optimize TupleVariations / gvar
...
Optimize drawing of GoogleSansFlex. Speeds up around 40%.
2025-05-17 11:23:14 -07:00
Behdad Esfahbod
8ef23c4877
[TupleVariation] Micro-optimize more
2025-05-17 11:13:36 -07:00
Behdad Esfahbod
c35b6eb420
[TupleVariation] Micro-optimize non-common paths too
2025-05-17 11:07:04 -07:00
Behdad Esfahbod
35db5c090c
[TupleVariation] Micro-optimize more
2025-05-17 11:02:29 -07:00
Behdad Esfahbod
1e0b04bdec
[TupleVariation] Micro-optimize gvar-cache
2025-05-17 10:46:46 -07:00
Garret Rieger
3e122d9df9
Disable OTS on the cmap4 overflow test case.
...
The test file has been stripped of most tables to avoid checking in a very large font (since it has a high number of codepoints), which causes OTS to fail on missing required tables.
2025-05-16 11:08:00 -07:00
Behdad Esfahbod
d47daacbdf
[gvar] Remove shared_tuple_active_idx cache
...
Reduces malloc overhead and doesn't slow things down much now that
we have a shared_tuple scalar_cache.
2025-05-16 01:16:12 -07:00
Behdad Esfahbod
c6097698c6
[ot-font/draw] Use a gvar shared-tuple scalar cache for calculate_scalar
...
Massive saving on massively variable fonts. Over 30% on a tested font.
2025-05-16 01:11:33 -07:00
Behdad Esfahbod
f3108c4b98
[gvar] Remove outdated comment
2025-05-15 18:31:51 -07:00
Behdad Esfahbod
f50490d6dd
Add hb_scalar_cache_t
2025-05-15 18:28:44 -07:00
Behdad Esfahbod
49b1a4c0fa
[TupleVariation] Reduce iteration overhead
2025-05-15 16:54:00 -07:00
Behdad Esfahbod
7fcf7b3cf1
[TupleVariation] Reduce iteration overhead
...
The check was actually wrong. And we check that upon access
separately.
2025-05-15 16:45:30 -07:00
Behdad Esfahbod
756980ce95
[TupleVariations] Cache all active indices in shared tuples
2025-05-15 15:50:01 -07:00
Garret Rieger
4e76727183
Add a test checks we can recover from cmap4 overflow.
2025-05-15 10:05:18 -06:00
Garret Rieger
82466d373f
Fix cmap4 overflow pathway.
...
cmap4 serialize was doing a pop_discard() on overflow, however the encoding record above it was also doing one as well. Remove the unnessecary cmap4 pop_dicard(). Note: in cmap4 there was a comment implying the subsequent pop_discard() would be a noop due to the set error, however is not true since pop_discard() still works when there's been an overflow error.
2025-05-15 10:05:18 -06:00
Behdad Esfahbod
08b52ae2e4
[rust] Roll dependencies
2025-05-13 14:13:55 -06:00
Behdad Esfahbod
2da1850798
[gen-ucd-table] Adjust comment with --rust
2025-05-13 00:04:52 -06:00
Behdad Esfahbod
b0666e2609
Revert "[unicode] Remove a few lines of cruft"
...
This reverts commit d978c4b50a .
Ouch!
2025-05-12 23:11:21 -06:00
Behdad Esfahbod
6deeb8aa26
Merge pull request #5322 from harfbuzz/gen-rust
...
[ucd] Generate rust
2025-05-12 23:10:46 -06:00