Commit graph

16516 commits

Author SHA1 Message Date
Behdad Esfahbod
64e49e0f71 [subset-cff2] Store num_glyphs in plan
Like cff1 code does.

Also, check for .notdef, like cff1 code does.
2023-06-22 20:27:20 -06:00
Behdad Esfahbod
f05561dd4e [subset-cff1] Use plan.num_glyphs instead of passing again 2023-06-22 20:25:04 -06:00
Behdad Esfahbod
7a124a0b4e [cff1] Use constructor for accelerator_templ_t 2023-06-22 20:18:20 -06:00
Behdad Esfahbod
ad025ddf05 [subset-cff] Simplify a bit 2023-06-22 20:09:36 -06:00
Behdad Esfahbod
e1753782c1 [subset-cff] Handle an error condition 2023-06-22 19:45:29 -06:00
Behdad Esfahbod
cb5f4d0c68 [subset-plan] Avoid a copy in freeing name-table-overrides 2023-06-22 18:56:17 -06:00
David Corbett
d8fba5c6b0 [use] Add FM categories to POST_BASE_FLAGS64 2023-06-22 20:56:08 -04:00
Behdad Esfahbod
6a17622a75 [array] Speed up iteration
These are faster than relying on the random-access methods
(forward, rewind, item_it).
2023-06-22 18:35:10 -06:00
Behdad Esfahbod
f839bd11d2 [multimap] Use one fewer object
Also fix error-checking to check for sub-object errors.
2023-06-22 17:29:57 -06:00
Behdad Esfahbod
280edb909b [map] Use a variable instead of function for is_trivial 2023-06-22 17:07:31 -06:00
Behdad Esfahbod
0aa939e70f [map] Add a constexpr 2023-06-22 17:05:55 -06:00
Behdad Esfahbod
cf386e8ce2 [map] Speed up resize() 2023-06-22 17:02:10 -06:00
Behdad Esfahbod
abd6c305ff [subset-plan] Micro-optimize 2023-06-22 16:44:29 -06:00
Behdad Esfahbod
7b53d2dbdd [subset] Avoid copying gid_to_unicode multimap
Construct it in the accelerator directly.
2023-06-22 16:35:11 -06:00
Behdad Esfahbod
272e159c89 [subset] Speed up populating reverse cmap 2023-06-22 16:31:50 -06:00
Behdad Esfahbod
8f80d9d38d [subset-accelerator] Avoid a multimap copy 2023-06-22 16:22:47 -06:00
Behdad Esfahbod
5c2aa1a8e7 [syllabic] Add buffer messages for inserting dotted-circle 2023-06-22 11:02:22 -06:00
Behdad Esfahbod
f0f6f6a805 [layout] More message massaging 2023-06-22 10:59:00 -06:00
Qunxin Liu
7232c01dce [instancer-solver] add tests for instancer-solver crossing calculation fix 2023-06-22 12:47:56 -04:00
Behdad Esfahbod
37555f8489 [layout] Trace chosen script tag 2023-06-22 10:21:19 -06:00
Behdad Esfahbod
c56275c09c [instancer-solver] Notation 2023-06-21 19:01:46 -06:00
Behdad Esfahbod
dbac23357f [instancer-solver] Simplify, from upstream 2023-06-21 18:54:11 -06:00
Behdad Esfahbod
32a9ac2e3a [instancer/L4] Add a comment from upstream 2023-06-21 18:30:31 -06:00
Behdad Esfahbod
244f3224b9 [instancer-solver] Port optimization from upstream
Fixes https://github.com/harfbuzz/harfbuzz/issues/4291
2023-06-21 17:54:49 -06:00
Behdad Esfahbod
197bb35972 [instancer-solver] Further simplify
From 94e081611c
2023-06-21 15:17:58 -06:00
Behdad Esfahbod
6788932d81 [instancer-solver] Simplify
From 7385cbbc34
2023-06-21 15:17:58 -06:00
Behdad Esfahbod
de0c5aed5b [instancer-solver] Backport bugfix from fonttools
Fixes https://github.com/harfbuzz/harfbuzz/issues/4289

Test not ported yet.
2023-06-21 15:17:58 -06:00
dependabot[bot]
a77f282865 Bump meson from 0.62.0 to 1.1.1 in /.ci
Bumps [meson](https://github.com/mesonbuild/meson) from 0.62.0 to 1.1.1.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/0.62.0...1.1.1)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 19:40:54 -04:00
Behdad Esfahbod
a094a6bd9c
Merge pull request #4275 from pnacht/pinned_pip
Hash-pin Python dependencies in CI
2023-06-19 18:50:02 -04:00
Pedro Kaj Kjellerup Nacht
0be1e5a73d
Use meson 0.62.0, remove retry
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-19 20:49:38 +00:00
Pedro Kaj Kjellerup Nacht
3679293a45
msvc-ci: Retry if meson setup is flaky
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-19 19:46:41 +00:00
Pedro Kaj Kjellerup Nacht
0ccb5c365f
Only use fonttools in msys2-ci
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-19 19:39:58 +00:00
Pedro Kaj Kjellerup Nacht
546508733d
Move fonttools to separate requirements file
Necessary because msys2/mingw don't accept the other deps
(not supported?), and msys2-ci.yml only needs fonttools.

Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-19 19:36:43 +00:00
Garret Rieger
db700b5670 [subset] fix fuzzer timeout.
Fixes: https://oss-fuzz.com/testcase-detail/6681253479579648. Limits iteration of coverage table during MATH subset to valid glyphs.
2023-06-13 08:42:36 -06:00
Pedro Kaj Kjellerup Nacht
e272269679
Bump meson to 0.60.0
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-06-12 14:36:49 +00:00
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