mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
Area type with wrap shapes was always written as outlines in the editing data for other apps. It is now written as type when the reader works the same wrap out again from the objects above it: each wrap object is a path of one subpath, a compound path of visible members, or an unclipped group of such objects, with no paint, or a solid fill, a plain solid stroke or both, without effects, art style, opacity mask or clipping, with an offset within -1000 to 1000 pt; the type's stored shapes match the ones those objects give it; and the shapes of all area type stay within the 2,000,000 anchors the reader copies. Each frame of a thread is checked on its own. When art is left out at the object limit, such type is written as outlines again. Other wrapped area type stays outlines. The reader recomputes the wrap with resolve_wrap after reading (resolve_text_wrap in crates/eps/src/import/native/build.rs) and reads the options with text_wrap in crates/eps/src/import/ai/read/document.rs; the round-trip tests check the reopened characters, frame, wrap shapes and wrap objects. resolve_wrap's layer walk is shared through a new wrap_sources so the check follows the same traversal.