Commit graph

16478 commits

Author SHA1 Message Date
dependabot[bot]
e39c4cf5a9 Bump ilammy/msvc-dev-cmd from 1.12.0 to 1.12.1
Bumps [ilammy/msvc-dev-cmd](https://github.com/ilammy/msvc-dev-cmd) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/ilammy/msvc-dev-cmd/releases)
- [Commits](7315a94840...cec98b9d09)

---
updated-dependencies:
- dependency-name: ilammy/msvc-dev-cmd
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 07:18:18 -06:00
dependabot[bot]
d82c7623c5 Bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 07:18:08 -06:00
Behdad Esfahbod
1159b9d3ee [subset/cff1] Remove always-true check 2023-06-10 10:54:32 -06:00
Behdad Esfahbod
fad2c4aea6 [subset/cff] Simplify a few serialize calls 2023-06-10 10:22:27 -06:00
Behdad Esfahbod
2e6919d526 [subset/cff2] Error handling
Fixes https://oss-fuzz.com/testcase-detail/4916785942757376
2023-06-10 10:08:56 -06:00
Pedro Kaj Kjellerup Nacht
5906f90ce1 Hash-pin Actions
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-10 08:42:36 -06:00
Behdad Esfahbod
0935b32795 [vector] Speed up shrink_vector for trivial destructors 2023-06-08 18:47:33 -06:00
Behdad Esfahbod
da2e2c8c25 [subset/cff] Speed up offset writing 2023-06-08 17:16:53 -06:00
Behdad Esfahbod
c85ca75eff [buffer-verify] Simplify a couple ifs 2023-06-08 15:58:38 -06:00
Behdad Esfahbod
e527c17e23 [buffer-verify] Don't consider shaping failure as error 2023-06-08 15:58:38 -06:00
Behdad Esfahbod
cb516075b6 [buffer-verify] Error handling 2023-06-08 15:58:38 -06:00
Behdad Esfahbod
39dd777a12
Merge pull request #4271 from googlefonts/change_axis_limits
[instancer] change tuple variations' axis limits
2023-06-08 15:25:20 -06:00
Qunxin Liu
3669a62710 fix bot 2023-06-08 15:05:37 -06:00
Qunxin Liu
9fd367663a [instancer] add testing code for change_tuple_variation_axis_limits()
Also fixed a small bug
2023-06-08 15:05:37 -06:00
Qunxin Liu
8057661f07 [instancer] use axis tag as hashmap key instead of axis index
This makes remove_axis() and set_tent() faster, which are used by
change_axis_limits ()
2023-06-08 15:05:37 -06:00
Qunxin Liu
389446c563 [instancer] add merge_tuple_variations () 2023-06-08 15:05:37 -06:00
Behdad Esfahbod
fea47dd3f2 [vector] Fix vector error handling when allocation used to be 0 2023-06-08 15:03:27 -06:00
Behdad Esfahbod
11308c4d1f [graph] Remove manual destruction
Happens automatically by destructor.
2023-06-08 14:51:18 -06:00
Behdad Esfahbod
d08aee5a7e Add fuzzing test 2023-06-08 13:20:28 -06:00
Behdad Esfahbod
dbdeb2649d [vector] Keep allocated size when in error 2023-06-08 12:08:29 -06:00
Behdad Esfahbod
9df07c3c30 [gsubgpos] Prevent a leak in closure
If the push wasn't successful we were constructing an
hb_set_t on the Crap data...  At least that's my reading
of the code.
2023-06-08 11:46:06 -06:00
Behdad Esfahbod
0f0b3bee21 [map] Fix use-after-move issue 2023-06-08 11:13:33 -06:00
Behdad Esfahbod
a67a7867d2 [cff] Tweak CFFIndex accessors again
Faster; avoiding multiply.
2023-06-07 20:24:02 -06:00
Behdad Esfahbod
04c5e46ac6 [subset/cff] Fix comment 2023-06-07 19:18:04 -06:00
Behdad Esfahbod
8832da8309 [subset/cff] Comment 2023-06-07 18:58:52 -06:00
Behdad Esfahbod
092373f351 [subset/cff] Comment 2023-06-07 17:49:13 -06:00
Behdad Esfahbod
e0b60bd08d [subset/cff1] Speed up remap_sids 2023-06-07 17:25:47 -06:00
Behdad Esfahbod
67b1624727 [set] Simplify a few set iterations as range loop 2023-06-07 16:25:11 -06:00
Behdad Esfahbod
988e4f068e [iter] Comment 2023-06-07 15:57:47 -06:00
Behdad Esfahbod
0364c69e6d [iter] Add has_fast_len
Set iterators are not random_access, but have fast len().
2023-06-07 15:52:18 -06:00
Behdad Esfahbod
2d1589221d [subset/hdmx] Remove an unintended vector copy 2023-06-07 15:47:08 -06:00
Behdad Esfahbod
81b2a56d54 [set] Micro-optimize iteration 2023-06-07 15:04:20 -06:00
Behdad Esfahbod
ad620af6f6 Revert "[iter] Another try at writing some for loops as range loops"
This reverts commit 69c6928289.

This had code size increase, and slows down non-random-access
iterators since it accesses __end__ which is O(n).
2023-06-07 15:00:35 -06:00
Behdad Esfahbod
80d6e996d7 [subset/cff1] Fix wrong comma location! 2023-06-07 14:21:40 -06:00
Behdad Esfahbod
69c6928289 [iter] Another try at writing some for loops as range loops 2023-06-07 14:11:02 -06:00
Behdad Esfahbod
138461beb4 [susbet/cff] Minor remove one indirection 2023-06-07 14:07:39 -06:00
Behdad Esfahbod
41369b6617 Revert "[subset/cff1] Optimize writing of consecutive names"
This reverts commit 3b25a63040.

Not worth it. Shows 0.5% speedup only on SourceSansPro/retaingids/10

Doesn't have code size increase though.
2023-06-07 14:04:42 -06:00
Behdad Esfahbod
3b25a63040 [subset/cff1] Optimize writing of consecutive names 2023-06-07 14:04:25 -06:00
Behdad Esfahbod
78082357c8 Revert "[iter] Rewrite some loops as range loops"
This reverts commit 7a5242a30f.

This times out test-set. Obviously broke something (in hb_all
I think). Not bothering to figure out right now.
2023-06-07 12:43:05 -06:00
Behdad Esfahbod
7a5242a30f [iter] Rewrite some loops as range loops 2023-06-07 12:36:15 -06:00
Behdad Esfahbod
cc9651d55d [map] Micro-optimize 2023-06-07 12:20:48 -06:00
Behdad Esfahbod
79113ec3b1 [subset/cff1] Micro-optimize String writing 2023-06-07 12:14:43 -06:00
Behdad Esfahbod
5fe96213aa [subset/cff] Micro-optimize CFFIndex writing 2023-06-07 12:05:57 -06:00
Behdad Esfahbod
70b13ef00b
Merge pull request #4267 from googlefonts/decompile_tuple_varstore
[instancer] decompile tuple varstore
2023-06-07 11:46:37 -06:00
Behdad Esfahbod
b80b6a4f5f [cff] Remove unused types 2023-06-06 18:11:55 -06:00
Behdad Esfahbod
26ac1d4b48 [cff] Remove unused method 2023-06-06 18:08:59 -06:00
Behdad Esfahbod
c6ce1f81ec [cff] Micro-optimize CFFIndex::operator[] 2023-06-06 17:17:29 -06:00
Behdad Esfahbod
a55d0b8866 [subset/cff] Inline type only used once 2023-06-06 17:13:09 -06:00
Behdad Esfahbod
2960d13f1b [subset/cff1] Micro-optimize string writing 2023-06-06 16:24:28 -06:00
Behdad Esfahbod
35e152b9f4 [subset/cff] Micro-optimize CFFIndex for empty strings 2023-06-06 16:21:14 -06:00