mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
The page comparison tells type that differs from art that differs by where the layers' text objects are (`type_areas` and `all_type_areas` in `crates/eps/src/import/native/compare.rs`). Type made from the file's text document has no layout then, so its box was the estimate of type without one, running right from its anchor: right-aligned type draws on the other side of it, centered type half outside it, vertical type across it. What differed there (type laid out again, or in another font) was counted as art, which is held to a stricter limit: the layers could be refused and the file sent to its PDF part or page, or the note said the art differs where the type does. The type areas now come from where the type draws: `drawn_box`, the box the first commit matches by, moved to `slots.rs` so both use it. The page's own type keeps its measured box, as before. `prune_unseen` and the boxes of made type that doesn't show still use the estimate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>