Add the CJK layout engine and use it for horizontal text:
- Line breaking with kinsoku rules that depend on the language: Japanese
JLREQ, Chinese per region (Mainland, Hong Kong, Taiwan) and Korean
word or syllable wrapping. Indivisible units stay together in narrow
boxes.
- Justification and squeezing that follow JLREQ, and distributed
alignment that keeps lines inside the box.
- Readings over the text (ruby, pinyin and zhuyin), emphasis marks,
warichu and CJK underlines, attached to the ideographic em box and
included in the export bounds.
- Shared glyph shaping, font tables and CJK fallback fonts.
`docs/cjk-layout.md` describes the design. Test fonts cover the locl,
vertical metrics and pinyin cases.
AI-assisted-by: claude-opus-5-5
Add a CLI under frontend/performance/benches/render_wasm that builds the
renderer, runs seeded scenes (rects, plus, paths, masks) in headless
Chromium and saves per-case timings.
- build, run: prepare or reuse builds; measure cases with warmups,
repetitions, deadlines
- ab: build and compare Cargo feature configurations
- compare, merge: median changes with bootstrap CIs between saved runs,
guarded by scene, build and settings checks
- purge: delete managed builds, runs or comparisons
- GPU runs through `run-devenv --gpu`
Lint, format and pnpm scripts now cover performance/ and its tests.
AI-assisted-by: gpt-6.1-sol, deepseek-flash, muse-spark, glm-5.3, gpt6-astra, claude-5.5-sonnet, claude-haiku-5.5
Forward Cargo arguments as an array and honor explicit profiles.
Build and copy each renderer target once under the repository lock,
with watch rebuilds using the same wrapper.
Select this checkout's compiler artifact and matching generated enum
table from Cargo JSON. Record actual features, profile and output paths,
and allow callers to override publication destinations.
Run the existing Cargo parser tests before the renderer's native tests
and stop on parser failures.
AI-assisted-by: gpt-6.1-sol