Commit b48767d
authored
docs: add 1600-style brutalist motion template (#101)
* fix(fonts): resolve declared custom and Google fonts in text rendering
Custom/Google fonts declared in a scenario's `fonts` were downloaded and
handed to Skia via `FontMgr::new_from_data`, but that call returns a
detached Typeface and never exposes it to `match_family_style` — Skia's
default FontMgr only name-resolves installed system fonts. So every
`font-family` pointing at a declared font silently rendered in the
Helvetica/Arial fallback (e.g. Anton came out as a generic sans-serif).
Keep the raw bytes in a global family->bytes registry when loading, and
have `typeface_with_fallback` resolve custom families from it first —
building and caching the Typeface per render thread (the FontMgr is
thread-local, so system-thread registration alone never reached the
rayon render workers). One weight per custom family via this path;
multi-weight custom families are follow-up.
Tests: registry stores first-wins + serves bytes; a registered family
resolves to its own typeface over the system fallback (uses the cached
Anton TTF when present, skips on a cold cache).
* docs: add 1600-style brutalist motion template
A 21s, 6-scene reference scenario (examples/1600-style.json) in the
style of motion studios like 1600.agency: full-bleed saturated colour
blocks that hard-cut between scenes, oversized Anton grotesque type,
kinetic entrances (slide/scale with stagger), animated counters, and
directional wipe transitions. Plus a skill rule documenting the visual
language so the look can be reproduced on any content.
Depends on the custom-font fix (declared Anton must actually render).
* docs: add spatial depth to 1600-style template
Address the '2D slideshow' feel: every scene now plays on space instead
of being a flat panel.
- continuous camera per scene (keyframed zoom + focal origin drift, and a
subtle roll on two scenes) — no more static frames
- three parallax planes via style.depth on scene direct children: a deep
tone-on-tone ghost word (~0.4), the content (1.0), floating foreground
accents (~1.75) — planes separate as the camera moves
- 3D rotational entrances (flip_in_x/y, tilt_in with perspective and a
hinge transform-origin) instead of flat slides; they resolve face-on so
the type stays legible
- camera-roll bleed avoided by keeping a covering zoom during rotation
(documented in the style rule)
Rule updated with the depth/camera layer.1 parent b4603f9 commit b48767d
2 files changed
Lines changed: 268 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments