mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
Merge pull request #1093 from moecr7/codex/fix-1063-text-line-breaks
This commit is contained in:
commit
39ef24af3a
5 files changed
+230
-35
No files matched your search
+5
-2
@@ -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`,
|
||||
|
||||
Reference in new issue
Block a user