Commit Graph
3 Commits
Author SHA1 Message Date
aiongg 5b61c9eaaa HTTP API: sample URLs name the sample text hash; bounded caches and cancellation-safe queue
- Sample subsets are at /v1/faces/{sha256}/{inst}/sample-{h}.woff2, where h is the
  first 12 hex characters of the sha256 of the face's sample text. sync stores h per
  face in faces.json; a stale h gets 404 so clients fall back to u/{codepoints}.
  Shared vectors for h in tests/data/preview-vectors.json.
- The face cache is bounded by FACE_CACHE_MB (default 256) as well as by count and
  serves the subsetter only; /v1/files streams from disk.
- Brotli downloads have their own compression slot, their own cache
  (FILES_BR_CACHE_MB, default 64) and spend the client's on-demand tokens; without
  either the file goes out uncompressed.
- A cancelled wait for a subsetting slot leaves the queue.
- Response-cache keys carry the generation; cached failures expire after 5 minutes.
- /readyz answers 503 once shutdown starts; a failed signal-handler install no
  longer stops the server.
- A full rate-limit map of fresh buckets evicts its oldest quarter.
- Face URLs containing % get 400; a 304 carries no Content-Encoding.
2026-10-27 05:12:07 +00:00
aiongg f01876d89f Add the subset core: codepoints, closure, instancing, renaming, WOFF2
Subsets through a thin in-repo binding to the vendored HarfBuzz 15.0.0
(crates/harfbuzz-subset-sys) and writes the WOFF2 container itself over
the brotli crate.
2026-10-27 04:44:46 +00:00
aiongg 5c2af0b8af Add the sync subcommand: mirror the pinned index's fonts into a content-addressed store (#4)
* Add the sync subcommand: mirror the pinned index's fonts and licences into a content-addressed store

* sync: use is_multiple_of for the progress line

* Sync: keep the last good manifest on failed runs, lock the run, clean stale temp files, encode index URLs, fall back to the plain index, merge mirrors of shared blobs, count unhashed licences
2026-10-26 23:15:55 -04:00