db62256a99d2261d495bff1546440f90c3e7cac9
Two causes: rangeWidth added a rect per inline box *and* per text node, so a segment inside a span measured double; and the pen was read back from the DOM, where it already carried the previous pass's advance. Carrying the pen along the line settles both, and the layout no longer depends on how many frames pagination takes.
Description
Powerful word processor — just one URL away. Free, Open Source, Private by Design
https://edentext.app/
docxlocal-firstodtofficeooxmlopen-sourceprivateprosemirrorself-hostedsveltetexteditortiptaptypescriptvitewordprocessor
AGPL-3.0
24 MiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
73.2%
Svelte
21.4%
JavaScript
3.6%
CSS
1.7%