summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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