mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 11:11:30 +00:00
Editable PDF import derived characters from glyph Unicode/CID mappings even when the enclosing marked-content sequence supplied /ActualText. A span that paints "xy" but says "AB", followed by "C", imported "xyC". Track the outermost replacement owner per span (absent, explicitly empty, consumed), decode it with the existing PDF text-string decoder, emit it once at the first placeable glyph, and let the remaining glyphs of the span advance the pen without phantom character slots or inferred spaces. Authored stretches keep their logical order while adjacent ordinary text still goes through visual-to-logical reconstruction. Glyph identity still drives font matching. Depth and size are bounded; oversized or unbalanced spans fall back to glyph mappings with a warning. Outlines mode and PDF export are unchanged. Parity docs updated, scores unchanged. Fixes #6165.