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/control/for.png | Bin 2762 -> 2787 bytes tests/ref/control/if.png | Bin 1689 -> 1727 bytes tests/ref/control/invalid.png | Bin 3700 -> 3772 bytes tests/ref/control/let.png | Bin 2050 -> 2089 bytes tests/ref/control/while.png | Bin 886 -> 929 bytes 5 files changed, 0 insertions(+), 0 deletions(-) (limited to 'tests/ref/control') diff --git a/tests/ref/control/for.png b/tests/ref/control/for.png index f0d4a5cd..d04ea62c 100644 Binary files a/tests/ref/control/for.png and b/tests/ref/control/for.png differ diff --git a/tests/ref/control/if.png b/tests/ref/control/if.png index 04724e1f..99bde49e 100644 Binary files a/tests/ref/control/if.png and b/tests/ref/control/if.png differ diff --git a/tests/ref/control/invalid.png b/tests/ref/control/invalid.png index c9822eeb..ff4c6987 100644 Binary files a/tests/ref/control/invalid.png and b/tests/ref/control/invalid.png differ diff --git a/tests/ref/control/let.png b/tests/ref/control/let.png index 693a8d4f..5fb1c992 100644 Binary files a/tests/ref/control/let.png and b/tests/ref/control/let.png differ diff --git a/tests/ref/control/while.png b/tests/ref/control/while.png index 55a6ed80..890131f1 100644 Binary files a/tests/ref/control/while.png and b/tests/ref/control/while.png differ -- cgit v1.2.3