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:
dotCooCoo
2026-11-08 12:59:33 +07:00
committed by bflatastic
parent dfb507b7b7
commit 8f14e2f0ec
3 changed files with 29 additions and 6 deletions
+2 -2
View File
@@ -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).