mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 21:51:36 +00:00
.ai/EPS import: cite Illustrator's documentation of auto leading
This commit is contained in:
@@ -345,8 +345,9 @@ struct Para {
|
||||
space_before: f64,
|
||||
space_after: f64,
|
||||
hyphenate: bool,
|
||||
/// Key 7: the share of its type size a line takes as its auto leading (1.2: 120%). `None`:
|
||||
/// the default.
|
||||
/// Key 7: the share of its type size a line takes as its auto leading (1.2: 120%, the default;
|
||||
/// Justification… sets 0 to 500%:
|
||||
/// https://helpx.adobe.com/illustrator/using/line-character-spacing.html). `None`: the default.
|
||||
auto_leading: Option<f64>,
|
||||
/// Keys 10 to 15, in the order of Paragraph panel menu › Hyphenation…: Words Longer Than,
|
||||
/// After First, Before Last, Hyphen Limit, Hyphenation Zone (pt) and Hyphenate Capitalized
|
||||
@@ -1073,7 +1074,8 @@ fn char_style(s: &Style, scale: f64) -> CharStyle {
|
||||
font_style: style,
|
||||
size: s.size * scale,
|
||||
// Auto leading stays auto: the layout gives each line the paragraph's share of the largest
|
||||
// type on it, as the file's own layout does.
|
||||
// type on it, as the file's own layout does ("The largest leading value in a line of type
|
||||
// determines the leading for that line": https://helpx.adobe.com/illustrator/using/line-character-spacing.html).
|
||||
leading: s.leading.map(|l| l * scale),
|
||||
tracking: s.tracking,
|
||||
baseline_shift: s.baseline_shift * scale,
|
||||
|
||||
@@ -50,7 +50,8 @@ private editing data. VectorCraft:
|
||||
An opacity mask's art of one shown object, other than a guide or a clipping path, opens as that object in the
|
||||
editing data of a `.ai`, EPS or PDF; other art opens in a group.
|
||||
Type from the text document keeps auto leading as auto, each line taking the paragraph's share
|
||||
(Auto Leading) of the largest type on it, and the paragraph's hyphenation options. Area type of one
|
||||
(Auto Leading) of the largest type on it ([Line and character spacing](https://helpx.adobe.com/illustrator/using/line-character-spacing.html)),
|
||||
and the paragraph's hyphenation options. Area type of one
|
||||
frame whose last lines the file sets but which don't fit here (the fallback font, or a descent
|
||||
past the frame's bottom) gets a frame taller from its bottom, with a warning.
|
||||
RGB in the PDF page's `ICCBased` spaces keeps the file's numbers in a `.ai` (the `uncalibrated_rgb`
|
||||
|
||||
Reference in New Issue
Block a user