mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 07:42:08 +00:00
SVG text with a textLength came in at its natural width. Following SVG 1.1 §10.9.1, the characters of each text or tspan with a textLength are now fitted to it: by spacing them out (lengthAdjust="spacing", the default), which becomes kerning, or by stretching them (spacingAndGlyphs), which becomes horizontal scale (kept within 1–10000%). Inner elements are fitted first; vertical text is spaced out only, with a warning for spacingAndGlyphs. Negative lengths are ignored.