From b98004330bf3ef372a0f0ef5c7daf1f96fd7873a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Sep 2022 10:28:06 +0200 Subject: Handle non-breaking spaces during justification --- tests/ref/text/linebreak.png | Bin 18957 -> 18981 bytes tests/ref/text/shorthands.png | Bin 4375 -> 4842 bytes tests/typ/text/shorthands.typ | 8 ++++++++ 3 files changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/ref/text/linebreak.png b/tests/ref/text/linebreak.png index 1a3f49df..77eef20e 100644 Binary files a/tests/ref/text/linebreak.png and b/tests/ref/text/linebreak.png differ diff --git a/tests/ref/text/shorthands.png b/tests/ref/text/shorthands.png index c21d49df..ddb679f5 100644 Binary files a/tests/ref/text/shorthands.png and b/tests/ref/text/shorthands.png differ diff --git a/tests/typ/text/shorthands.typ b/tests/typ/text/shorthands.typ index 2efd1ad1..5c94dab0 100644 --- a/tests/typ/text/shorthands.typ +++ b/tests/typ/text/shorthands.typ @@ -3,6 +3,14 @@ --- The non-breaking~space does work. +--- +// Make sure non-breaking and normal space always +// have the same width. Even if the font decided +// differently. +#set text("Latin Modern Roman") +a b \ +a~b + --- - En dash: -- - Em dash: --- -- cgit v1.2.3