diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-10-18 15:10:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 13:10:22 +0000 |
| commit | 711a2d88079f0b3929bbb6be97bda52139e22aa1 (patch) | |
| tree | f094bb4b0d2c24a7853fa476ab012ebe25e27f08 /tests | |
| parent | 6057df7c4d1068eb1e16d9b1476ee2a0a9cb03e7 (diff) | |
Fix optimized linebreaks without justification (#5236)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-5235-linebreak-optimized-without-justify.png | bin | 0 -> 5821 bytes | |||
| -rw-r--r-- | tests/suite/layout/inline/linebreak.typ | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/issue-5235-linebreak-optimized-without-justify.png b/tests/ref/issue-5235-linebreak-optimized-without-justify.png Binary files differnew file mode 100644 index 00000000..b36dc406 --- /dev/null +++ b/tests/ref/issue-5235-linebreak-optimized-without-justify.png diff --git a/tests/suite/layout/inline/linebreak.typ b/tests/suite/layout/inline/linebreak.typ index 8371d76e..e4b04b24 100644 --- a/tests/suite/layout/inline/linebreak.typ +++ b/tests/suite/layout/inline/linebreak.typ @@ -123,3 +123,19 @@ For info see #link("https://myhost.tld"). // - shaping that results in multiple glyphs in the same cluster #set text(font: "Noto Sans Thai") #h(85pt) งบิก + +--- issue-5235-linebreak-optimized-without-justify --- +#set page(width: 207pt, margin: 15pt) +#set text(11pt) + +#set par(linebreaks: "simple") +Some texts feature many longer +words. Those are often exceedingly +challenging to break in a visually +pleasing way. + +#set par(linebreaks: "optimized") +Some texts feature many longer +words. Those are often exceedingly +challenging to break in a visually +pleasing way. |
