From bbb9ed07ffe8a2a0ea0a232f6cfc52f82f7f7afe Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 10 Mar 2021 10:20:01 +0100 Subject: =?UTF-8?q?Better=20line=20spacing=20calculations=20=E2=86=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- tests/ref/expr/array.png | Bin 3448 -> 3317 bytes tests/ref/expr/block-invalid.png | Bin 506 -> 522 bytes tests/ref/expr/block.png | Bin 1423 -> 1453 bytes tests/ref/expr/call-invalid.png | Bin 2944 -> 2789 bytes tests/ref/expr/call.png | Bin 6143 -> 5863 bytes tests/ref/expr/dict.png | Bin 1651 -> 1627 bytes tests/ref/expr/ops.png | Bin 807 -> 827 bytes 7 files changed, 0 insertions(+), 0 deletions(-) (limited to 'tests/ref/expr') diff --git a/tests/ref/expr/array.png b/tests/ref/expr/array.png index 44331d9f..784553b3 100644 Binary files a/tests/ref/expr/array.png and b/tests/ref/expr/array.png differ diff --git a/tests/ref/expr/block-invalid.png b/tests/ref/expr/block-invalid.png index 11899d86..b380defc 100644 Binary files a/tests/ref/expr/block-invalid.png and b/tests/ref/expr/block-invalid.png differ diff --git a/tests/ref/expr/block.png b/tests/ref/expr/block.png index ffa59568..d5ad52ae 100644 Binary files a/tests/ref/expr/block.png and b/tests/ref/expr/block.png differ diff --git a/tests/ref/expr/call-invalid.png b/tests/ref/expr/call-invalid.png index 0d3783a8..88f13780 100644 Binary files a/tests/ref/expr/call-invalid.png and b/tests/ref/expr/call-invalid.png differ diff --git a/tests/ref/expr/call.png b/tests/ref/expr/call.png index 39941778..7197bb90 100644 Binary files a/tests/ref/expr/call.png and b/tests/ref/expr/call.png differ diff --git a/tests/ref/expr/dict.png b/tests/ref/expr/dict.png index 351e0498..28a7cb3b 100644 Binary files a/tests/ref/expr/dict.png and b/tests/ref/expr/dict.png differ diff --git a/tests/ref/expr/ops.png b/tests/ref/expr/ops.png index fb717dd0..95a24c0e 100644 Binary files a/tests/ref/expr/ops.png and b/tests/ref/expr/ops.png differ -- cgit v1.2.3