mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-08 19:32:08 +00:00
- Colours: AlphaColor components are straight, not premultiplied; use them directly instead of dividing by alpha (the opacity test now checks RGB, not just alpha). - Text: key families by font content key, not PostScript name, so two faces with one name cannot share a family. Keep text layers at the path index where their glyphs were painted instead of appending them after all paths. - Correctness: reject bow-tie clip paths, start a new subpath after close, fall back on unparseable/unsupported glyph mappings, truncated content, failed font registration, and shape-cache budget exhaustion. - Cancellation: check between text-cache renders as well as between objects. - Include Bezier control points in the cache-size estimate; cache the content hash per Hayro font identity. - Docs: ImportOptions/CLI help now describe editable text and the embedded-font caveat. Tests: text cache is not blank, paint order, bow-tie clip, line after close, cancellation between objects.