mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
type.fillPath accepted up to 100,000 anchors, but each curved segment flattens to 16 edges against a 65,536-edge cap, so a big curved path failed with the misleading "the path encloses no area". The anchor limit now lives in photocraft_text::area as MAX_AREA_KNOTS (4096, the Type tool's existing click cap) and the edge cap is derived from it (4096 x 17), so every path within the limit fits even with every segment curved, and a bigger one gets "the path has too many anchor points". The Type tool's click cap now names the same constant, so a path it offers as an area target can always be filled. Co-Authored-By: Claude Opus 5.5 <[email protected]>