From 711a2d88079f0b3929bbb6be97bda52139e22aa1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 18 Oct 2024 15:10:22 +0200 Subject: Fix optimized linebreaks without justification (#5236) --- .../issue-5235-linebreak-optimized-without-justify.png | Bin 0 -> 5821 bytes tests/suite/layout/inline/linebreak.typ | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/ref/issue-5235-linebreak-optimized-without-justify.png (limited to 'tests') diff --git a/tests/ref/issue-5235-linebreak-optimized-without-justify.png b/tests/ref/issue-5235-linebreak-optimized-without-justify.png new file mode 100644 index 00000000..b36dc406 Binary files /dev/null and b/tests/ref/issue-5235-linebreak-optimized-without-justify.png differ 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. -- cgit v1.2.3