summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 10:28:06 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 10:28:06 +0200
commitb98004330bf3ef372a0f0ef5c7daf1f96fd7873a (patch)
tree693b78cabbbbb5424b538be9cd79544fa1f48569 /tests
parent0d12f2ab23177642eef2e6bb9c583cdd0c743b33 (diff)
Handle non-breaking spaces during justification
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/linebreak.pngbin18957 -> 18981 bytes
-rw-r--r--tests/ref/text/shorthands.pngbin4375 -> 4842 bytes
-rw-r--r--tests/typ/text/shorthands.typ8
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/ref/text/linebreak.png b/tests/ref/text/linebreak.png
index 1a3f49df..77eef20e 100644
--- a/tests/ref/text/linebreak.png
+++ b/tests/ref/text/linebreak.png
Binary files differ
diff --git a/tests/ref/text/shorthands.png b/tests/ref/text/shorthands.png
index c21d49df..ddb679f5 100644
--- a/tests/ref/text/shorthands.png
+++ b/tests/ref/text/shorthands.png
Binary files 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
@@ -4,6 +4,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: ---