summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-25 20:48:38 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-25 20:48:38 +0100
commitb0f4b13f6d4a1fe7742707d08e11ba03f3542b58 (patch)
tree13704c92d6e9f2b85f487533c2f0d1ca7cf58d84 /tests
parentefde5cac88078f10485f715be66a27efba2f23d8 (diff)
Basic justification
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/justify.pngbin0 -> 11615 bytes
-rw-r--r--tests/typ/text/justify.typ14
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/ref/text/justify.png b/tests/ref/text/justify.png
new file mode 100644
index 00000000..26787af9
--- /dev/null
+++ b/tests/ref/text/justify.png
Binary files differ
diff --git a/tests/typ/text/justify.typ b/tests/typ/text/justify.typ
new file mode 100644
index 00000000..7b8a2829
--- /dev/null
+++ b/tests/typ/text/justify.typ
@@ -0,0 +1,14 @@
+
+---
+#set par(indent: 14pt, spacing: 0pt, leading: 5pt, justify: true)
+
+This text is justified, meaning that spaces are stretched so that the text
+forms as "block" with flush edges at both sides.
+
+First line indents and hyphenation play nicely with justified text.
+
+---
+// Test that lines with hard breaks aren't justified.
+#set par(justify: true)
+A B C \
+D