You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GPU autohinted text is ~10× cheaper: 282 → 24 ns/glyph at 11.6k glyphs per
draw (RTX 3090, GL 3.3; unhinted text is 13 ns/glyph), with bit-identical
output. The per-quad vertex fit keeps its per-feature tables in registers
(4-vector selects instead of dynamically indexed arrays, which were placed
in local memory and slowed every vertex invocation), sends knots to the
fragment stage per feature slot with a mask, and passes each axis's record
offset so fragments no longer re-parse the record header. Layer-info
addressing uses the new SNAIL_PAINT_INFO_WIDTH ABI constant instead of a
texture-size query per load.
The fragment-stage fallback fitter is gone. Non-affine (perspective)
autohint placements now render unhinted rather than refitting per pixel
with a per-pixel scale.
The draw-time fit accepts at most snail.autohint.max_fit_features (16)
features and blue zones per axis on both the CPU and GPU backends; a longer
run renders that axis unhinted. Previously the CPU fitter accepted 32 and
the GPU refit such glyphs per fragment.
Nix packaging (breaking for Nix consumers): default.nix takes { sources ? npins, nixpkgs ? sources.nixpkgs, pkgs ? import nixpkgs { }, ... }
and returns { packages, overlay, shell, default }. The demo derivation is default / packages.snail-demo (formerly the demo attribute), is also
provided by overlay, and scopes its source to the build's inputs so
editing entry points or pins no longer changes its hash.
Dense font curve records share each joint between neighbouring segments,
as Slug does: a segment reads (p0, p1) from its texel and p2 from the
next, which also starts the following segment. A contour of n segments
takes n + 1 texels instead of 2n, roughly halving font curve storage.
Shaders are unchanged and rendering is bit-identical. Chains end with a
marker texel, so records stay self-describing and validation still checks
that every band reference starts a segment.
AtlasRecord gains curve_texels, the curve block's texel span, which
dense records no longer derive from curve_count.
snail.prepared.producer_version is 2: prepared artifacts from earlier
versions miss the cache instead of loading the old layout.
The README's comparison with the public Slug reference and its algorithm
diagrams describe the layout and evaluator as implemented.
Added
zig build run-autohint-census: per-font counts of autohint fit features
per axis against the fit bound.
snail-perf-glsl options --repeat N, --autohint-policy NAME, and --font NAME for draw-size scaling and policy/font coverage.
Fixed
zig build ci-nix builds the renamed default attribute; it failed after
the packaging change above.
nix/snail-demo.nix reports the release version (it had stayed at 0.18.0).
scripts/perf.sh no longer runs the removed text-autohint-fallback case.