Commit Graph
21947 Commits
Author SHA1 Message Date
Behdad Esfahbod c87f86eff1 [raster] Widen overflowing scanline accumulators (#6273)
The analytic rasterizer stored every row's area and cover in 32- and
16-bit accumulators. Highly overlapping outlines could exceed those
ranges and trigger signed overflow before coverage was clamped.

Keep compact SIMD accumulators for rows with at most 127 active edges.
Lazily use 64-bit scalar accumulators for denser rows, where the narrow
cover bound no longer holds. Add regressions for area overflow and
cover wrapping.

Tested with meson test -C build, the ASan/UBSan raster API test, all
raster fuzzer corpus chunks, and the supplied reproducer.

Assisted-by: OpenAI Codex <noreply@openai.com>
2026-09-21 11:58:49 -06:00
Kevin Hellemun 0d0b62575f fix(gcc 4.9.4): compilation errors
The current build for v14.5.0 fails to compile on gcc 4.9.4 which is
used on embedded Kobo systems. 

Ref: https://github.com/OGKevin/cadmus/pull/1005

Change-Id: 7a4bec5b5418bd0921b273d8d4a1e79b
Change-Id-Short: spvolnuouvyr
2026-09-21 11:02:29 -06:00
dependabot[bot] 7114915e50 Bump github/codeql-action/upload-sarif from 4.38.0 to 4.38.1
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.38.0 to 4.38.1.
- [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/b96794f015dfd88f77b49b1c93e0fa7110f94c63...1c5b675653bb5c22dbe9b12b556ec555138e09fd)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-21 13:30:19 +03:00
Khaled Hosny 863d3f7787 14.5.0 14.5.0 2026-09-21 00:41:07 +03:00
Garret Rieger 240a7d7b8b Fix incorrect add_object sizes. (#6267) 2026-09-17 18:54:44 -06:00
Behdad Esfahbod bf93d86714 [Unicode 18] Update Unicode data and script support
Update the generated Unicode and language-tag tables for Unicode 18.0.
Add script values for Jurchen, Proto-Cuneiform, and Seal, route them
through USE, and select ideographic baselines for Jurchen and Seal.
Document the new script values and extend Unicode and baseline tests.

Tested with meson test -C build: 278 passed, 1 skipped, 0 failed.

Assisted-by: Codex <codex@openai.com>
2026-09-17 00:37:58 +03:00
egoism d8c712f41c Fix memory leak in graphite2 face shaper unhappy path (#6263) 2026-09-15 21:16:07 -06:00
Qunxin Liu bf6414323c [subset] Fix empty ClassDef not intersecting class zero (#6262)
* [subset] Fix empty ClassDefFormat2 not intersecting class zero

An empty ClassDef (rangeCount == 0) assigns class zero to every glyph, but
ClassDefFormat2::intersects_class() and intersected_classes() reported no
intersection when glyphs is not empty.

Adds a subset test that fails before and passes after.

* [subset] Fix empty ClassDefFormat1 not intersecting class zero

Same bug as the previous commit, in the format 1 variant. When glyphCount is
zero and startGlyphID is zero, `startGlyph + classValue.len - 1` underflows
to 0xFFFFFFFF, so neither of the two comparisons can be true and class zero
is never reported. (With a nonzero startGlyphID it happens to work.)

harfbuzz always serializes an empty ClassDef as format 2, so this is only
reachable with fonts produced by other tools.

Extends the previous test with a hand-built format 1 variant of the font.
2026-09-15 20:16:33 -06:00
Behdad Esfahbod 92f0aa24f9 [test] Cover static VARC axes without fvar (#6260)
Verify that VARC component coordinates can address axes retained in gvar
when a static font has no fvar table.

Tested with the full Meson test suite.

Assisted-by: Codex <codex@openai.com>
2026-09-14 15:30:54 -06:00
dependabot[bot] 5f3db59f57 Bump fonttools from 4.64.0 to 4.65.0 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.64.0 to 4.65.0.
- [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.64.0...4.65.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 14:08:57 +03:00
dependabot[bot] 98b4641c15 Bump github/codeql-action/upload-sarif from 4.37.9 to 4.38.0
Bumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.37.9 to 4.38.0.
- [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/cdf488f595d80d6e07e03d4674febd5ab45fa938...b96794f015dfd88f77b49b1c93e0fa7110f94c63)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 14:08:43 +03:00
Behdad EsfahbodandClaude Fable 5.1 64e2b53235 [glyf] Charge point loading to the work budget before doing the work (#6256)
The glyf outline budget was only charged after a glyph loaded
successfully: Glyph::get_points() spent 16 units per node up front, and
glyf_accelerator_t::get_points() charged one unit per point only after
the whole tree came back.  A glyph that loaded ~175K points and then
tripped a structural cap (HB_GLYF_MAX_POINTS, edge count) paid for the
nodes but not the points.  Driven from a COLR paint walk through
hb_font_get_glyph_extents(), one such glyph was loaded and thrown away
over 8000 times per session within the budget, ~1.4G point loads.

Charge at the point where the work is attempted instead:

- SimpleGlyph::get_contour_points() takes the budget and charges
  num_points before allocating, clearing, and reading, so truncated or
  later-rejected glyphs pay for the points they allocate.

- Composite levels charge the component subtree size before
  transform_points(), since each nesting level transforms every point
  below it and that multiplication was previously invisible to the
  budget.

The terminal per-point charge for path emission is unchanged.

Local hb-vector-fuzzer run on the testcase: 4.3s -> 0.12s.  Full test
suite passes.  The testcase is added as a fuzz seed.

Fixes: https://oss-fuzz.com/testcase-detail/5714817420427264


Claude-Session: https://claude.ai/code/session_013ksLGe7wUVwbuANqR56YaN

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-10 22:19:47 -06:00
Garret Rieger c5ed3c8da3 [perf] Use snprintf to format benchmark-gpu names (#6255)
Avoid potential stack buffer overflow when registering benchmarks
from user-supplied font paths by using snprintf instead of strcat.

Assisted-by: Gemini
2026-09-10 16:59:38 -06:00
Garret Rieger d60f62df48 [util/gpu] Avoid use-after-free on current_text in rebuild_buffer (#6253)
In hb-gpu-web and hb-gpu-web-webgpu, rebuild_buffer() frees current_text
after duplicating the input text, but then passes the original text
pointer to demo_buffer_add_text(). When called from web_load_font(),
web_set_variations(), web_set_features(), or web_set_palette() with
custom text active, text aliases current_text, resulting in a
use-after-free read of recently freed heap memory.

Fix this by:
1. Skipping redundant reallocation when text already equals
   current_text.
2. Passing current_text to demo_buffer_add_text().
3. Handling a null text input safely with a default fallback.

Assisted-by: Gemini
2026-09-10 16:45:59 -06:00
Garret Rieger 59729dc369 Fix memory leak in hb_fc_can_render (#6254)
Assisted-by: Gemini
2026-09-10 16:45:41 -06:00
Garret Rieger 863c53818b [directwrite] Fix cluster mapping OOB access, heap overflow, and UAF (#6252)
In the DirectWrite shaper, vis_clusters was allocated from the scratch
buffer with a static size based on Uniscribe scratch math (glyphs_size).
This caused three memory safety issues:

1. vis_clusters was indexed using log_clusters, which stores user
   cluster IDs rather than glyph indices, allowing arbitrary
   out-of-bounds array access. In DirectWrite, the character-to-glyph
   mapping is returned in clusterMap, not log_clusters.
2. If glyphCount exceeded glyphs_size, the initialization loop
   overwrote past the allocated scratch buffer.
3. buffer->ensure(glyphCount) could reallocate buffer->pos,
   invalidating the scratch-allocated vis_clusters before its values
   were read into info->cluster (use-after-free).

Fix this by allocating vis_clusters dynamically as an hb_vector_t
sized to glyphCount, and correctly mapping clusters using clusterMap
with bounds checks.

Assisted-by: Gemini
2026-09-10 16:12:36 -06:00
Garret Rieger d2e24847f6 Add null checking and fix memory leak in hb-coretext.cc (#6250)
* Add null checking and fix memory leak in hb-coretext.cc

Assisted by: Gemini

* Add RAII hb_cf_ptr_t to manage coretext object lifetimes.

* Remove HAVE_CORETEXT guard in hb-coretext.hh

hb-coretext.hh will only be included when HAVE_CORETEXT is defined, so no need for the guard.
2026-09-10 14:54:07 -06:00
Behdad Esfahbod 3baafbcb3d [raster] Clip the edge sweep's column walk to the surface (#6251)
* [raster] Clip the edge sweep's column walk to the surface

edge_sweep_row() walked every fixed-point pixel column an edge spans,
even though columns right of the surface contribute nothing and
columns left of it only contribute a cover delta that telescopes into
column 0.  A near-horizontal edge with extreme coordinates could span
~2^24 columns per row, making sweep cost proportional to coordinate
range instead of surface width: the ClusterFuzz testcase took 114s in
a plain release build.

Fold the left-of-surface portion of the walk into a single column-0
cover update, skip the right-of-surface portion, and enter/exit the
per-column loop at the visible window.  Jumping the incremental fy
accumulator by k*delta_fy is exact, since the increment is constant
and the running sums are bounded, so output is bit-identical; verified
by comparing 178 hb-raster renders (draw and paint paths, several
fonts, sizes, and negative-margin crops that clip edges off-surface)
byte-for-byte against the previous code.  The testcase now runs in
0.17s.  Also add it as a fuzz seed.

Fixes https://oss-fuzz.com/testcase-detail/5267980968329216

Assisted-by: Claude Fable 5 <noreply@anthropic.com>

* [raster] Keep an unclipped fast path in the edge sweep

The window clipping added in the previous commit made every
multi-column edge-row pay for the clip setup, measurable as ~1% more
instructions rasterizing all glyphs of NotoSansCJKsc/SourceHanSans-VF
at 256px with hb-raster-all.  Guard it with a two-compare
fully-inside-the-surface check and walk such edges with the original
unclipped code, which is also the everyday case: auto-sized surfaces
always contain their edges.

Interleaved perf-stat A/B (5 rounds, all glyphs at 256px): instruction
overhead drops to +0.24% (CJK) / +0.9% (AwamiNastaliq, tiny workload);
cycles flat to -1.3%, within noise.  Output remains bit-identical on
the 178-render comparison matrix, and the oss-fuzz 5267980968329216
testcase stays at 0.19s.

Assisted-by: Claude Fable 5 <noreply@anthropic.com>

* [raster] Charge column spans in the pixel-work estimate

hb_raster_draw_get_pixel_work() charged each edge only its scanline
span, so a nearly-horizontal edge crossing one pixel row but sweeping
the full surface width cost up to `width` cells while being charged 2
units — the paint path's pixel-budget precharge could undercharge the
sweep by a factor of the surface width.  This is the same blind spot
that let the previous commits' column-walk timeout through the paint
path's precharge.

Charge each edge its column span too, clipped to the surface width the
same way the row span is clipped to its height.  Since an edge is a
straight segment, row span plus clipped column span is a true upper
bound on the post-clipping sweep work.  Normal outlines are barely
affected: flattening yields short segments whose column spans are
commensurate with their row spans, far below the 2^26 budget.

No rendering change: the 178-render comparison matrix remains
bit-identical and the full test suite passes.

Assisted-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-10 14:30:09 -06:00
Behdad Esfahbod 00f966c719 Merge pull request #6210 from harfbuzz/varc-subsetting
[subset] Support VARC tables
2026-09-10 13:53:43 -06:00
Behdad Esfahbod 155a9d88e8 [subset] Address VARC review comments
Short-circuit unchanged-index checks and simplify glyph closure to use
one pending set with the output glyph set tracking visited glyphs.

Strengthen retained-glyph-ID coverage by comparing the source and subset
outlines using the original glyph ID.

Tested with: meson test -C build --print-errorlogs

Assisted-by: OpenAI Codex <openai-codex@users.noreply.github.com>
2026-09-10 13:24:14 -06:00
Behdad Esfahbod d268a23eeb [subset] Split VARC subsetting into helpers
Move table-specific planning and record rewriting phases out of
VARC::subset() into a dedicated helper.  This leaves the entry point to
coordinate the phases and serialize their results without changing
subsetting behavior.

Tested with: meson test -C build

Assisted-by: OpenAI Codex <openai-codex@users.noreply.github.com>
2026-09-10 12:23:33 -06:00
Behdad Esfahbod cfe86ce5e7 [subset] Harden VARC closure handling
Propagate allocation and component-decoding failures from VARC closure
instead of continuing with an incomplete glyph set. Treat malformed VARC
records as dependency-extraction failures as well.

Document VARC dependency edges and exercise subset variation-store
remapping at non-default coordinates.

Tested with:
- meson test -C build
- standalone lean and world syntax checks
- CMake harfbuzz-subset build

Assisted-by: OpenAI Codex <openai-codex@users.noreply.github.com>
2026-09-10 12:11:13 -06:00
Behdad Esfahbod 5343bf4019 Merge branch 'main' into varc-subsetting
Assisted-by: OpenAI Codex <openai-codex@users.noreply.github.com>
2026-09-10 11:53:30 -06:00
Behdad Esfahbod f5efbbef38 Reapply "[rust] Pin skrifa" (#6248)
This reverts commit 9279d1d1a1.
2026-09-09 12:15:31 -06:00
Behdad Esfahbod 2724e66e4d [ci] Ignore unused apt repositories (#6249)
GitHub's Ubuntu runner carries Chrome and Microsoft apt sources, but every
package installed by these workflows comes from Ubuntu.  A third-party
repository publishing while apt refreshes its indexes can therefore fail
otherwise unrelated jobs with a hash-sum mismatch.

Remove both unused sources before updating package indexes in every affected
workflow.

Assisted-by: OpenAI Codex <openai-codex@users.noreply.github.com>
2026-09-09 12:14:52 -06:00
Behdad Esfahbod 9279d1d1a1 Revert "[rust] Pin skrifa"
This reverts commit b48358db71.
2026-09-09 11:57:38 -06:00
Behdad Esfahbod b48358db71 [rust] Pin skrifa
Build was failing otherwise.
2026-09-09 11:53:21 -06:00
Behdad Esfahbod bc678801ce [subset] Emit a valid empty shared-tuples offset (#6240)
When a gvar table has no shared tuples, point sharedTuplesOffset at the
end of the glyph-variation offsets array, where the empty shared-tuples
array resides, instead of emitting a null offset.

This lets strict consumers retain glyph variations in partially
instantiated fonts with no shared tuples.

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-08 12:14:02 -06:00
Behdad Esfahbod 9435eaa5fa Merge branch 'main' into varc-subsetting 2026-09-07 14:19:21 -06:00
Behdad Esfahbod 50046742d7 Merge branch 'main' into varc-subsetting
Resolve the VARC record-decoding conflict by preserving the shared
decoder while threading main's rendering budget through axis and
variation work.

Tests: meson test -C build (277 passed, 1 skipped)

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-07 12:16:12 -06:00
Behdad Esfahbod 74fc05cd14 [subset] Address VARC review findings 2026-09-07 12:10:33 -06:00
Behdad Esfahbod edd4f3b4b9 [limits] Restore rendering budget test runtime (#6244)
The unified glyph budget raised outline work limits for VARC, raster,
vector, and GPU rendering to 1 << 26.  Pathological fuzz inputs can
consume that entire allowance, doubling the full test-suite runtime.

Restore the common outline budget to 1 << 24 while retaining the
rasterizer's separate 1 << 26 pixel-work floor.  Precharge raster
scanline work against that pixel budget before rendering so complex
COLR masks cannot do unbounded edge sweeps before their mask area is
charged.

Tests: meson test -C build (276 passed, 1 skipped; 2.82-2.83s)

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-07 12:09:32 -06:00
dependabot[bot] c7ceca52c0 Bump hendrikmuhs/ccache-action from 1.2.23 to 1.2.24
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action) from 1.2.23 to 1.2.24.
- [Release notes](https://github.com/hendrikmuhs/ccache-action/releases)
- [Commits](https://github.com/hendrikmuhs/ccache-action/compare/d62db5f07c26379fc4b4e0916f098a92573c3b03...f09c25b45002a07be2955cbe52e8cee55643f89d)

---
updated-dependencies:
- dependency-name: hendrikmuhs/ccache-action
  dependency-version: 1.2.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 16:05:47 +03:00
dependabot[bot] 2d5d7fc7f3 Bump fonttools from 4.63.0 to 4.64.0 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.63.0 to 4.64.0.
- [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.63.0...4.64.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 13:35:01 +03:00
dependabot[bot] 768196d9fe Bump ninja from 1.13.0 to 1.13.2 in /.ci
Bumps [ninja](https://github.com/ninja-build/ninja) from 1.13.0 to 1.13.2.
- [Release notes](https://github.com/ninja-build/ninja/releases)
- [Commits](https://github.com/ninja-build/ninja/compare/v1.13.0...v1.13.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-07 13:32:22 +03:00
Behdad Esfahbod 46ea946ab4 Merge pull request #6214 from harfbuzz/rendering-work-budgets
[limits] Add rendering work budgets
2026-09-06 16:36:58 -06:00
Behdad Esfahbod 22fa39d796 [cmake] Compile core sources individually (#6243)
* [cmake] Compile core sources individually

CMake built libharfbuzz from the amalgamated harfbuzz.cc source,
placing all core symbols in one archive member. Static consumers
linking an auxiliary library before libharfbuzz then pulled duplicate
internal definitions into the final link.

Derive the core source list from harfbuzz.cc and compile each source
separately, matching the Meson archive layout.

Fixes: https://github.com/harfbuzz/harfbuzz/issues/5683
Assisted-by: OpenAI Codex <codex@openai.com>

* [ci] Make CMake static build explicit

Set BUILD_SHARED_LIBS=OFF on the ARM CMake job so changes to static
archive construction have intentional CI coverage.

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-06 15:22:04 -06:00
David Corbett cdbe72ca8b [USE] Update the data files for Unicode 18.0 (#6242)
This uses the data files from
<https://github.com/microsoft/font-tools/tree/9dcd14bcc9d9bb634b813fe06e1aaa2bc0209a7d/USE>.
2026-09-06 12:55:21 -06:00
Behdad Esfahbod 809f903b8a [fontations] Support bitmap glyphs (#6241)
Use Skrifa's bitmap-strike API to provide glyph extents and paint PNG
and BGRA images from CBDT and sbix tables. Select strikes using the
font's requested ppem and preserve the OT backend's table precedence.

Keep the face blob alive through image blobs retained by paint
callbacks.

Tests: meson test -C build --no-rebuild

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-05 21:09:46 -06:00
Behdad Esfahbod b6f26f5591 [fontations] Use COLRv1 clip boxes for glyph extents (#6239)
Skrifa exposes resolved COLRv1 clip boxes independently of outline
glyph metrics. Use them when present so glyph extents report the clip
bounds instead of falling back to painted-content bounds.

Keep the existing paint fallback for color glyphs without a clip box.

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-05 20:24:18 -06:00
Behdad Esfahbod db981a8baf [gsubgpos] Preserve concat hazards at end of input (#6238)
The RuleSet fast paths filtered out rules requiring another glyph when
the skipping iterator reached the end of the buffer. Unlike the normal
rule walk, that early return did not record the resulting
unsafe-to-concat range.

Keep the end-of-input optimization, but track filtered rules and mark
their concat hazard before returning. Cover both contextual and chained
contextual rule sets with a five-rule font that forces the fast paths.

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-05 14:44:39 -06:00
Behdad Esfahbod 92e67ef19f [ot] Preserve pair-positioning and ligature concat hazards
A zero-valued PairPos record can select a different, non-zero record
if the second glyph changes, so keep the pair unsafe to concat even
when no positioning was applied.

Likewise, make the ligature second-glyph digest rejection report the
same hazard as the full ligature walk.

Tests: meson test -C build

Port of https://github.com/harfbuzz/harfrust/pull/465

Assisted-by: OpenAI Codex <codex@openai.com>
2026-09-04 19:55:47 -06:00
Garret Rieger 2a6c6b9b90 Add test for hb_result_t::from() that moves the input. 2026-09-04 17:08:08 -06:00
Garret Rieger 18d0fd1a6c Rework TRY macro to work the MSVC:
Split into one macro for void results, and a new TRY_ASSIGN() for when the Ok() value needs to be assigned.
2026-09-04 17:08:08 -06:00
Garret Rieger 2f291a46ae Convert repacker and graph code to utilize to hb_result_t.
Converts all error handling in the repacker/graph code to use hb_result_t.
2026-09-04 17:08:08 -06:00
Behdad Esfahbod 17a0bdc245 [benchmark-shape] Accept multiple font/text pairs
Replace the singular named font and text options with repeated
positional FONTFILE TEXTFILE pairs. Register every supplied pair and
reject incomplete input so no requested benchmark is silently omitted.

Tested with the full Meson suite and an unfiltered two-pair run.

Assisted-by: Codex <codex@openai.com>
2026-09-04 15:33:01 -06:00
Behdad Esfahbod 8a98b8b3ab [benchmark-shape] Accept multiple variations
The --variations option previously parsed its entire argument as one
hb_variation_t, so only one axis could be selected. Parse the
comma-separated argument into an array and apply all valid axes.

Tested with the full Meson suite and a two-axis benchmark-shape run.

Assisted-by: Codex <codex@openai.com>
2026-09-04 15:28:29 -06:00
Behdad Esfahbod f2d62aaa7d Fix an int overflow
Fixes https://oss-fuzz.com/testcase-detail/4709124282318848
2026-09-04 14:14:49 -06:00
Behdad Esfahbod 724ef405f3 OT: Cache first-input classes per contextual RuleSet (#6234)
Build a compact class digest for every format-2 contextual RuleSet in
the subtable's existing external cache.  Reject a RuleSet before walking
its rules when the next input glyph cannot match any rule's first class.

Rules without another input position force the digest open.  Digest
collisions only cause the normal rule walk, and allocation failure falls
back to the uncached path.

Assisted-by: Codex <codex@openai.com>
2026-09-04 04:18:05 -06:00
Behdad Esfahbod be67d96120 OT: Cache contextual input and lookahead classes (#6233) 2026-09-04 03:17:19 -06:00