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/library/box.png | Bin 2663 -> 2510 bytes tests/ref/library/font.png | Bin 4484 -> 4554 bytes tests/ref/library/hv.png | Bin 3898 -> 3960 bytes tests/ref/library/image.png | Bin 220343 -> 219392 bytes tests/ref/library/page.png | Bin 8276 -> 8417 bytes tests/ref/library/pagebreak.png | Bin 814 -> 840 bytes 6 files changed, 0 insertions(+), 0 deletions(-) (limited to 'tests/ref/library') diff --git a/tests/ref/library/box.png b/tests/ref/library/box.png index e8513d70..2804f8e9 100644 Binary files a/tests/ref/library/box.png and b/tests/ref/library/box.png differ diff --git a/tests/ref/library/font.png b/tests/ref/library/font.png index 92b5b7fc..8e611b16 100644 Binary files a/tests/ref/library/font.png and b/tests/ref/library/font.png differ diff --git a/tests/ref/library/hv.png b/tests/ref/library/hv.png index 13a352a4..0842d409 100644 Binary files a/tests/ref/library/hv.png and b/tests/ref/library/hv.png differ diff --git a/tests/ref/library/image.png b/tests/ref/library/image.png index 70f263e6..af497c8d 100644 Binary files a/tests/ref/library/image.png and b/tests/ref/library/image.png differ diff --git a/tests/ref/library/page.png b/tests/ref/library/page.png index 1ddeeb3d..1537fad4 100644 Binary files a/tests/ref/library/page.png and b/tests/ref/library/page.png differ diff --git a/tests/ref/library/pagebreak.png b/tests/ref/library/pagebreak.png index dfb9dcaa..b1ee0eef 100644 Binary files a/tests/ref/library/pagebreak.png and b/tests/ref/library/pagebreak.png differ -- cgit v1.2.3