mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 02:19:56 -06:00
.ai save: the editing copy keeps Standard Vertical Roman Alignment
The editing-data writer wrote a run's key 35 only for Tate-chu-yoko (3). Type with Standard Vertical Roman Alignment, on or off, was saved with no key, so the setting was lost from the editing data. Every run now carries key 35 in the form the reader reads it (crates/eps/src/import/ate.rs, Texts::style, lines 669-670): 1 when the setting is on, 2 when it is off and 3 for Tate-chu-yoko. The document's defaults and the normal character style carry 1. Key 35 holds one value, so a run with both Tate-chu-yoko and the setting is written as Tate-chu-yoko, and the save reports the type attributes warning for it. - writer/texts.rs: baseline_direction() gives each run's value; normal_char() writes 1; loses() and TYPE_ATTRIBUTES name the setting. - tests.rs: a vertical and a horizontal object with the setting on, off and Tate-chu-yoko come back the same through the reader, lay out as before, and carry the expected keys; a run with both is reported. - docs/file-format-parity.md: the .ai save section lists the written values.
This commit is contained in:
@@ -102,7 +102,10 @@ private editing data. VectorCraft:
|
||||
gutters and first baseline, threaded frames included) and type on a path are written as text: a text object for
|
||||
each, naming its story in the text document, with the characters, fonts, sizes, leading, tracking, baseline shift,
|
||||
scales, solid fills and strokes, capitals and paragraph alignment, indents, spacing and direction; other character
|
||||
and paragraph attributes are left out with a warning. Type in opacity masks, pattern tiles, symbols and art cut to a
|
||||
and paragraph attributes are left out with a warning. Each run's baseline direction is written in the form the reader
|
||||
below reads it: 1 when Standard Vertical Roman Alignment is on, 2 when it is off and 3 for Tate-chu-yoko; the
|
||||
document's defaults and the normal character style carry 1. A run with both Tate-chu-yoko and Standard Vertical Roman
|
||||
Alignment is written as Tate-chu-yoko, with the type attributes warning. Type in opacity masks, pattern tiles, symbols and art cut to a
|
||||
clipping object, mirrored type, turned or unevenly scaled area type and type on a path, area type in an open frame,
|
||||
type on an open path whose ends meet, area type that flows around a text wrap, type of only white space, threads of
|
||||
type on a path, threads whose frames differ in orientation, type and stories past the sizes VectorCraft's reader reads, and
|
||||
|
||||
Reference in New Issue
Block a user