mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-06 18:52:38 +00:00
befc4b959d
To find the characters that justification or Mojikumi moves, SVG export without Fewer <tspan> Elements laid out every live type object a second time, as point type with Mojikumi None and default Justification options, whenever its paragraph had Mojikumi on. New type gets Line-end Punctuation Half Width, so every new type object was laid out twice. Mojikumi only spaces Japanese punctuation and Japanese letters, so type without them lays out the same either way. - TextLayout::mojikumi_applies says whether the text or a list marker holds a character Mojikumi spaces. - reader_advances keeps such a paragraph's Mojikumi, and reads the glyphs from the layout it was given when the object it would lay out is the same; otherwise it lays the object out again as before. The SVG is unchanged. Exporting 5,000 point type objects takes a median of 109.4 ms instead of 171.5 ms on Windows 11.