Commit Graph
18036 Commits
Author SHA1 Message Date
Behdad Esfahbod bb4d37b052 [VARC/coord-setter] Reduce stack allocation on 32bit systems 2025-02-26 12:17:27 -07:00
Behdad Esfahbod 51d3489ca1 [Composite] Fix memory-free rendering 2025-02-26 12:09:31 -07:00
Behdad Esfahbod a037d3815f [vector] Fix operator = 2025-02-26 12:05:12 -07:00
Behdad Esfahbod 59e6a1c477 [glyf/Composite] Malloc-free 2025-02-26 11:34:04 -07:00
Behdad Esfahbod 3c4cb472d1 [VARC] Fix uninitialized value
Fixes https://oss-fuzz.com/testcase-detail/6089638800588800
2025-02-26 10:48:36 -07:00
Behdad Esfahbod fcbf14a0e5 [CompositeGlyph] Adjust pre-allocation 2025-02-25 20:16:18 -07:00
Behdad Esfahbod 6ca8852eff [glyf] Return earlier if table is empty 2025-02-25 19:57:43 -07:00
Behdad Esfahbod 0cd98ebbf7 [vector] Add a missing fast-path 2025-02-25 18:53:04 -07:00
Behdad Esfahbod 41626401b0 [vector] Add faster extend() for array types 2025-02-25 18:48:34 -07:00
Behdad Esfahbod aaf5c06d62 [vector] Rewrite copy_array() to extend vector 2025-02-25 18:45:38 -07:00
Behdad Esfahbod 40c77a1c5a Remove a redundant method 2025-02-25 18:37:20 -07:00
Behdad Esfahbod 81339256da [gvar] Rename two variables 2025-02-25 18:02:26 -07:00
Behdad Esfahbod 87830b62c6 [gvar] Remove unused method 2025-02-25 18:02:26 -07:00
Behdad Esfahbod 7614320a13 [glyf] Reduce malloc pressure
Benchmark 15% faster for draw.
2025-02-25 16:59:37 -07:00
Behdad Esfahbod 882d328839 [glyf] Port to decycler for composite glyphs
5% speed up drawing Roboto-Regular.ttf.
2025-02-25 16:35:32 -07:00
Behdad Esfahbod ffee85d67f [VARC] Minor simplify pointer math 2025-02-25 16:20:42 -07:00
Behdad Esfahbod dcb80ecbd9 [gvar] Use a method 2025-02-25 15:58:37 -07:00
Behdad Esfahbod 23937e8cd5 [gvar] Combine two loops 2025-02-25 15:48:23 -07:00
Behdad Esfahbod 9b451f2055 [gvar] Minor remove a variable 2025-02-25 15:16:09 -07:00
Behdad Esfahbod 7222c1e50f [path-builder] Add a constexpr 2025-02-25 15:13:20 -07:00
Behdad Esfahbod e450552d07 [coord-setter] Fix memory access in case of malloc failure
Fixes https://oss-fuzz.com/testcase-detail/5383702943432704
2025-02-25 14:54:37 -07:00
Behdad Esfahbod b12612f525 Fix compiler warnings 2025-02-25 13:47:06 -07:00
Behdad Esfahbod 8280ef7d93 Merge pull request #5089 from harfbuzz/vector-explicit
[vector] Disallow accidental creation of transient vectors
2025-02-25 12:18:43 -07:00
Garret Rieger ea1434b897 Split iup glyf partial instance tests into a separate set which ignores due to IUP rounding differences fonttools. 2025-02-25 19:02:11 +00:00
Behdad Esfahbod aaecaa4c0e [vector] Disallow accidental creation of transient vectors
Fix sites that were doing this under our feet.

This lowers precision of some instancing operations from double
to float, which modifies a few results by rounding error.

TODO: Update tests.
2025-02-25 19:02:11 +00:00
Behdad Esfahbod f71faf5fec [VARC] Fix buffer scratch borrowing 2025-02-25 11:35:21 -07:00
Behdad Esfahbod e76b689fe1 [VARC] Fix resource leak 2025-02-25 11:23:48 -07:00
Behdad Esfahbod 827be1b23c Revert "[MultiVarStore] Micro-optimize"
This reverts commit 13d98f1ded.

This broke bots. I don't fully understand why tests pass locally.
2025-02-25 10:23:10 -07:00
Behdad Esfahbod 13d98f1ded [MultiVarStore] Micro-optimize 2025-02-25 01:40:19 -07:00
Behdad Esfahbod 9a0cf8d641 [test/subset/cff-japanese] Shrink test
Was taking too long.
2025-02-25 00:19:25 -07:00
Behdad Esfahbod 084fb3ab4f [test/subset/cmap] Shrink test
Was taking more than the rest of the test suite combined.
2025-02-25 00:16:27 -07:00
Behdad Esfahbod 51d8ef48d9 [gvar] Cache shared_indices as well 2025-02-25 00:09:28 -07:00
Behdad Esfahbod 47124e6337 [VARC] Avoid creating cache if there's no VARC table 2025-02-24 23:25:50 -07:00
Behdad Esfahbod d5d199fbc7 [VARC] Reduce malloc pressure
By caching one hb_glyf_scratch_t on the VARC accelerator.
2025-02-24 23:20:12 -07:00
Behdad Esfahbod 2c5ab14aaa [coord-setter] Increase static array size 2025-02-24 22:50:42 -07:00
Behdad Esfahbod a058a1f223 [TupleValues] Unroll a loop 2025-02-24 21:53:17 -07:00
Behdad Esfahbod 13ee8edf06 [vector] Speed up extend() 2025-02-24 21:17:58 -07:00
Behdad Esfahbod 46485124ea [vector] Simplify a method 2025-02-24 21:04:34 -07:00
Behdad Esfahbod 6fe550306c [TupleValues] Don't overshadow end() method 2025-02-24 20:57:30 -07:00
Behdad Esfahbod 97a5c52af4 [VARC/MultiVarStore] Reduce malloc pressure more 2025-02-24 20:53:19 -07:00
Behdad Esfahbod 6938ee0342 [VARC] More nuanced caching 2025-02-24 20:44:15 -07:00
Behdad Esfahbod 74bb7c52f3 Fix a compiler warning 2025-02-24 20:21:38 -07:00
Behdad Esfahbod 081fcbdf5a [VARC] Minor move variable closer to use 2025-02-24 20:15:24 -07:00
Behdad Esfahbod 0a1b26b862 [coord-setter] Reduce malloc pressure
~15% speedup benchmark-font draw of varc-hanzi.ttf
2025-02-24 20:07:59 -07:00
Behdad Esfahbod 76c3beaf36 [VARC] Reduce malloc overhead 2025-02-24 19:50:51 -07:00
Behdad Esfahbod 2099db378a [TupleValues] Optimize decoding 2025-02-24 15:13:08 -07:00
Behdad Esfahbod 043980a60e [TupleValues] Micro-optimize 2025-02-24 11:23:11 -07:00
dependabot[bot] 474c6e43a6 Bump github/codeql-action from 3.28.9 to 3.28.10
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.9 to 3.28.10.
- [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/9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0...b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 13:23:08 +02:00
dependabot[bot] 22e5469cec Bump ossf/scorecard-action from 2.4.0 to 2.4.1
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/62b2cac7ed8198b15735ed49ab1e5cf35480ba46...f49aabe0b5af0936a0987cfb85d86b75731b0186)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 13:22:54 +02:00
dependabot[bot] 5f23b9767a Bump actions/upload-artifact from 4.6.0 to 4.6.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08...4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 13:22:43 +02:00