Commit graph

16838 commits

Author SHA1 Message Date
Behdad Esfahbod
8fe506e153 Revert "Require numerator and denominator in auto fraction"
This reverts commit f3e86937df.
2023-07-30 11:09:37 -06:00
David Corbett
f3e86937df Require numerator and denominator in auto fraction 2023-07-30 10:26:00 -06:00
Behdad Esfahbod
23838e5a2e [graph] Error handling 2023-07-29 13:20:14 -06:00
Behdad Esfahbod
04f4909257 [graph] Use a move instead of swap 2023-07-28 14:37:52 -06:00
Behdad Esfahbod
3bedb0eeed [graph] Minor rename 2023-07-27 16:04:01 -06:00
Behdad Esfahbod
bb1f53c254 [graph] Try fixing infinite loop found by CIFuzz under malloc fail 2023-07-27 13:29:56 -06:00
Behdad Esfahbod
db3314c1f8 [graph] Minor space type change 2023-07-27 13:20:32 -06:00
Behdad Esfahbod
6a218eaeea
Merge pull request #4343 from harfbuzz/graph-parents-map
[graph] Use a hb_map_t to keep parents, instead of hb_vector_t
2023-07-27 13:14:52 -06:00
Behdad Esfahbod
6bb61708ed [graph] Try fixing bots 2023-07-27 13:06:30 -06:00
Behdad Esfahbod
1b5abb1781 [graph] Speed-up vertices having only one parent 2023-07-27 12:56:06 -06:00
Behdad Esfahbod
f3d0b11d57 [graph] Make parents private 2023-07-27 12:56:06 -06:00
Behdad Esfahbod
d3b997ee70 [graph] Use a hb_map_t to keep parents, instead of hb_vector_t
In some fonts, for example Noto Duployan-Regular, nodes can
have over a thousand parents... Speeds up 10% subsetting.
2023-07-27 12:55:57 -06:00
Qunxin Liu
45a0d65c62 [instancer] cosmetic change 2023-07-27 10:43:48 -06:00
Behdad Esfahbod
cb320d2222 Revert "[cff] Use float instead of double"
This reverts commit c8f67ac28e.

Tests failing.
2023-07-27 10:43:07 -06:00
Behdad Esfahbod
c8f67ac28e [cff] Use float instead of double
Reduces memory usage slightly.
2023-07-27 10:34:45 -06:00
Behdad Esfahbod
b36b100ef1 [var] Remove byte_data_t; use hb_bytes_t
Now that we have hopefully fixed the bug preventing hb_bytes_t
use, remove the hack.

Ref.
5690840ceb
https://github.com/harfbuzz/harfbuzz/issues/4138
2023-07-26 14:42:46 -06:00
Behdad Esfahbod
c25b8c0612
Merge pull request #4335 from googlefonts/bug_fixes
[instancer] support avar table, fix issues in STAT/fvar tables
2023-07-26 12:47:15 -06:00
Qunxin Liu
5cab0709a4 [instancer] fix for missing to update tuple indices flag in operator += 2023-07-26 10:09:27 -07:00
Qunxin Liu
515f85d545 [instancer] fix incorrect encoded_len 2023-07-26 09:49:14 -07:00
Qunxin Liu
bccdcf5b18 [instancer] fix a bug in compiling deltas_y for gvar 2023-07-26 09:48:08 -07:00
Behdad Esfahbod
5690840ceb [map] Another try at fixing archaic clang
Fixes (?) https://github.com/harfbuzz/harfbuzz/issues/4138
2023-07-26 09:54:15 -06:00
Behdad Esfahbod
a3b18062b7 [trak] Fix a couple return values 2023-07-25 11:11:07 -06:00
Behdad Esfahbod
62e6f7835c [Cursive] round 2023-07-25 08:32:21 -06:00
Behdad Esfahbod
60db142784 [layout] Remove unused "max-size" cruft 2023-07-24 20:49:32 -06:00
Behdad Esfahbod
8eb7889fd4 Add max-size to static-size objects 2023-07-24 20:31:12 -06:00
Behdad Esfahbod
e322949b9b [ArrayOf] Remove fast-path for offset to max-sized objects
Fixes timeout https://oss-fuzz.com/testcase-detail/6153196517851136
2023-07-24 20:29:18 -06:00
dependabot[bot]
9ffea6328e Bump github/codeql-action from 2.20.4 to 2.21.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.20.4 to 2.21.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](489225d82a...1813ca74c3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 08:34:26 -06:00
dependabot[bot]
1a267f22ff Bump fonttools from 4.41.0 to 4.41.1 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.41.0 to 4.41.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.41.0...4.41.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 08:34:13 -06:00
Nikolaus Waxweiler
ca7e7e925b Fix wasm-micro-runtime build instructions 2023-07-23 15:25:48 -06:00
Nikolaus Waxweiler
a32278acd8 Fix example code 2023-07-23 15:25:48 -06:00
Behdad Esfahbod
55f41e287f [perf] Add duployan.txt
From https://kaltashwawa.ca/2022/01/20/lovecraft-in-chinook-puspus-kopa-ulthar-tawn/
2023-07-21 12:10:46 -06:00
Behdad Esfahbod
c91899be14 [gdef] Use set-digest for mark-filterint-sets
Speeds up Noto Duployan-Regular.otf by 45% percent!
2023-07-21 11:43:47 -06:00
Behdad Esfahbod
e8948a4e86 [gsubgpos] Fix optimization
Fixes https://github.com/harfbuzz/harfbuzz/issues/4336
2023-07-20 22:12:53 -06:00
Behdad Esfahbod
36c7ec443b [sanitize] Simplify a return 2023-07-20 18:56:46 -06:00
Qunxin Liu
13f05ab9b3 [instancer] support avar table partial instancing 2023-07-20 12:37:42 -07:00
Behdad Esfahbod
837885f0fa Revert "[sanitize/Coverage] Keep a map of sane coverages"
This reverts commit a689114898cc3e8f1c6ba7cc49cd6c3639d91250.
2023-07-20 12:59:57 -06:00
Behdad Esfahbod
0ab906715e [sanitize/Coverage] Keep a map of sane coverages
Fonts like Gulzar reuse the same coverage over a thousand times
sometimes.

However, this doesn't speed up sanitize unfortunately. Looks
like calling Coverage::sanitize() is already very fast. We're
just doing A LOT of it.

The map slowed it down in fact. A set was even slower.

Going to revert.
2023-07-20 12:59:46 -06:00
Behdad Esfahbod
7de2f515a0 [set] Remove dependency on hb-machinery.hh 2023-07-20 12:46:54 -06:00
Behdad Esfahbod
e8de5cb08f [gsubgpos] Use a couple variables 2023-07-20 11:31:13 -06:00
Behdad Esfahbod
0ccd61a3b2 [gsubgpos] Micro-optimize 2023-07-19 16:42:30 -06:00
Behdad Esfahbod
b01c165034 [gsubgpos] Minor error handling 2023-07-19 16:35:10 -06:00
Behdad Esfahbod
ee5f200bf1 [gsubgpos] Remove un unnecessary variable 2023-07-19 12:27:39 -06:00
Qunxin Liu
a0bb2d3a9b [instancer] support STAT table for all instancing operations 2023-07-19 11:21:01 -07:00
Behdad Esfahbod
42c6a3a18a [gsubgpos] Remove unnecessary condition
Second is always set in this branch.
2023-07-19 12:07:19 -06:00
Behdad Esfahbod
b5de54e1d4 [gsubgpos] Also match second component in (Chain)RuleSet::apply()
Another 40% speedup in shaping Gulzar-Regular.
2023-07-19 11:58:11 -06:00
Qunxin Liu
73d94dbde3 [instancer] bug fixes in fvar: add missing instanceCount, update axis limit 2023-07-19 10:33:57 -07:00
Richard Dodd (dodj)
02b00d7743 Update wasm-shaper.md (just a small typo) 2023-07-19 08:54:54 -06:00
Qunxin Liu
730f579f68 [instancer] store float value rather than F2DOT14 int value in axes_location map 2023-07-18 17:31:23 -06:00
Qunxin Liu
efbd257a32 [instancer] memory leak fix in cvar 2023-07-18 17:31:23 -06:00
Behdad Esfahbod
a9e9279bee
Merge pull request #4329 from googlefonts/instancer_solver_fix
port instancer solver normalizeValue fixes from fonttools
2023-07-18 12:24:17 -06:00