mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
Type made from a file's text document has no layout when the import matches it with the page's type, so the box it was matched by was the estimate of type without a layout: as wide as an average font would set it, running right from its anchor. Right-aligned point type draws on the other side of its anchor, centered type lies half outside that box, and vertical type runs down the page across it. Where the text document makes the type of every text object that shows (`made_only`), the page's type there was then nobody's: the import noted "some of the page's type has no text object in the layers, so it is left out" for type that is in the layers, and the made type, not seen on the page, was weighed against the page as type the page may not draw, and sometimes taken out. `made_only` (`crates/eps/src/import/native/plan.rs`) now takes the box of made point type that shows from its layout (`drawn_box`), in the fonts the import has, as the document measures it once it is open. The node itself keeps no layout, so the document's type is measured when it opens, as before. Area type and type on a path are matched by their frame and path, as before. Where some text object's type isn't made (`plan`), the box stays the estimate: there the page's pieces in the box where made type draws can belong to text objects stacked on it whose type isn't made, and the made type would take them all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>