mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 12:28:56 +00:00
Text styles: loading skips a style whose sizes or scales are out of range
A loaded character style kept a size, scale, leading, shift or stroke width that charStyle.new refuses. Such a style is now skipped and listed in the reply's skipped names.
This commit is contained in:
+2
-2
@@ -5939,8 +5939,8 @@ in, come along as Paste brings those of pasted type; a global or spot color whos
|
||||
is the document's. A loaded style that is the same as the style of
|
||||
its name, or of its name with a number (`Body 2`), is not added again; any other is added under a free name. The
|
||||
document's styles and the type that uses them keep their attributes, and the file's Normal styles are not loaded. The
|
||||
reply lists the names `added`, `existing` and `skipped` (a style whose attributes do not read, or whose name is
|
||||
empty); `textStyle.loadAll` replies `{charStyles, paraStyles}`. A Return the Type tool types (or `text.editRange`
|
||||
reply lists the names `added`, `existing` and `skipped` (a style whose attributes do not read or are out of the range
|
||||
`charStyle.new` takes, or whose name is empty); `textStyle.loadAll` replies `{charStyles, paraStyles}`. A Return the Type tool types (or `text.editRange`
|
||||
inserting `\n`) continues the style of the paragraph it splits; deleting a break keeps the first paragraph's style;
|
||||
`text.setText` gives every paragraph the first one's attributes. Threaded text keeps each paragraph's attributes as
|
||||
the story re-flows (a paragraph split between frames has them in both).
|
||||
|
||||
Reference in New Issue
Block a user