summaryrefslogtreecommitdiff
path: root/src/exec/state.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-10 10:20:01 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-10 10:20:01 +0100
commitbbb9ed07ffe8a2a0ea0a232f6cfc52f82f7f7afe (patch)
tree2b106b63e104652b66efc74a0ffa3080a8b0a134 /src/exec/state.rs
parentb2b8d37ce03de60582230e03c03efa356b6f31d3 (diff)
Better line spacing calculations ↕
- Only add line spacing between lines. Previously, line spacing was added below every line, making `#box[word]` higher than just `word`. - Compute box height of text as `ascender - descender` so that the full word is contained in the box.
Diffstat (limited to 'src/exec/state.rs')
-rw-r--r--src/exec/state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec/state.rs b/src/exec/state.rs
index 22839c54..416b5d08 100644
--- a/src/exec/state.rs
+++ b/src/exec/state.rs
@@ -93,7 +93,7 @@ impl Default for ParState {
fn default() -> Self {
Self {
word_spacing: Relative::new(0.25).into(),
- line_spacing: Relative::new(0.2).into(),
+ line_spacing: Linear::ZERO,
par_spacing: Relative::new(0.5).into(),
}
}