Files
vectorcraft/crates/engine/src/cmd/textstyles
dotCooCoo 03c1c6c70f Plug-ins: written type keeps one paragraph style per paragraph, and API level 2 filters may leave out an image's opacity
- A read-only image entry may leave out `opacity`, which hosts before API
  level 3 don't give, so a level 2 filter that rebuilds an image entry from
  the fields it knows still matches.
- A `text.paragraphs` list returned as it was given next to changed
  `text.runs` is checked against the new paragraphs: a count that no longer
  matches is refused instead of being dropped.
- Written runs hold at most 4,096 paragraphs, the limit for runs and for
  the paragraphs a filter is given.
- A fill or stroke in a written run's style with a key its `type` doesn't
  read (`tintt`) is refused with the `unknown key` error.
- The font family limit counts the name as given, not the trimmed name.
- The run styles of a type object are indexed once per object, not
  compared with every run's style.
- Character styles loaded from another document are skipped when their
  tracking, kerning, rotation, miter limit, dashes, Small Caps or variable
  font axes are out of range, as `charStyle.new` checks them.
- The plug-in command test's Size command adds a square, since an output
  that changes nothing records no undo step.

Docs: docs/plugins.md, docs/mcp.md, plugin.run params text.
2026-11-22 14:09:03 -08:00
..