Files
antialgorithm/scripts
Vlad Lasky 033f404957 rough.py: shake text that already lists per-letter dy values
shake() returned early when dy held more than one value, a check from
upstream 7f92b83, so text whose author had placed letters one by one
(dy.svg: dy="0 -10 -10 20 20 -20" on WAVE ON, dy="0,0.25em,..." on
STEPS AND) got no baseline jitter at all.

Each listed value is now resolved as a length (em against the element's
font-size, % against the canvas height) and the small offsets are added
on top of it. When the list is shorter than the text the missing entries
count as 0, as SVG says for dx/dy (the last value does not repeat);
values beyond the last character are kept as they are, since SVG ignores
them. x, y, dx and rotate lists are not changed; rotate is still only
added when the author has none.

Rendered with cairosvg, because librsvg ignores per-letter dy lists: the
author's wave and steps are unchanged and the letters get the same small
shake as single-valued text.
2026-11-26 14:55:38 +11:00
..