Merge pull request #1093 from moecr7/codex/fix-1063-text-line-breaks

This commit is contained in:
Brandon Thomas committed 2026-10-13 04:28:28 -04:00
commit 39ef24af3a
5 files changed
+230 -35

No files matched your search

+5 -2
View File
@@ -478,8 +478,11 @@ effectcraft-cli run clip.ecproj roto.stroke '{"layer":"#1","points":[[300,200],[
### Text: styles and editing
Source Text holds character style runs and per-paragraph settings. `layer.setText` changes the
whole layer, or only characters `range: [start, end]` (character indices): character attributes
Source Text holds character style runs and per-paragraph settings. CR (`\r`), LF (`\n`) and
CRLF (`\r\n`) each make a paragraph break; the original string and character indices are
preserved. This also applies to scripted `TextDocument` values and `sourceRectAtTime()` bounds.
`layer.setText` changes the whole layer, or only characters `range: [start, end]` (character
indices): character attributes
(`font`, `size`, `fill`, `tracking`, `kerning: metrics|optical|<1/1000 em>`, `tsume`,
`baseline: superscript|subscript`, `allCaps`…) split the text into runs; paragraph attributes
(`justify`, `indentLeft`, `indentFirst`, `spaceBefore`, `direction`, `composer`,