diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:24:33 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:24:33 +0200 |
| commit | 8680fcd4903b451909a5932e8b948a68c9aacb16 (patch) | |
| tree | 37a195fc77ecee3ec7f17639079f4c7652cde7a4 /src/eval/mod.rs | |
| parent | 22697f0c0c858bc013ec5c7d8b3ea50f000246dd (diff) | |
Rename geometric eval and apply to resolve ✏
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 71a09749..e1fa8c1a 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -173,7 +173,7 @@ impl EvalContext { self.start_group(ParGroup { dirs: self.state.dirs, aligns: self.state.aligns, - line_spacing: self.state.par.line_spacing.eval(em), + line_spacing: self.state.par.line_spacing.resolve(em), }); } @@ -299,7 +299,7 @@ impl Eval for SynNode { SynNode::Space => { let em = ctx.state.font.font_size(); ctx.push(Spacing { - amount: ctx.state.par.word_spacing.eval(em), + amount: ctx.state.par.word_spacing.resolve(em), softness: Softness::Soft, }); } @@ -318,7 +318,7 @@ impl Eval for SynNode { ctx.end_par_group(); let em = ctx.state.font.font_size(); ctx.push(Spacing { - amount: ctx.state.par.par_spacing.eval(em), + amount: ctx.state.par.par_spacing.resolve(em), softness: Softness::Soft, }); ctx.start_par_group(); @@ -358,7 +358,7 @@ impl Eval for NodeRaw { families.flatten(); let em = ctx.state.font.font_size(); - let line_spacing = ctx.state.par.line_spacing.eval(em); + let line_spacing = ctx.state.par.line_spacing.resolve(em); let mut children = vec![]; for line in &self.lines { |
