From 4df4ea6c9f367845b18283a413d8cddad1b67c23 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 3 Nov 2026 08:41:57 -0500 Subject: [PATCH] Text: Thai distributed paragraphs still stretch like justified ones --- crates/text/src/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/text/src/layout.rs b/crates/text/src/layout.rs index 87b89194..c52b840a 100644 --- a/crates/text/src/layout.rs +++ b/crates/text/src/layout.rs @@ -418,7 +418,7 @@ fn justify_line(p: &ParaShaped, rl: &RawLine, adv: &mut [f64], align: Align, sla filled = true; } } - if stretch && !filled && matches!(align, Align::Justify | Align::JustLow) { + if stretch && !filled && matches!(align, Align::Justify | Align::JustLow | Align::ThaiDistributed) { let spaces = line_cells.iter().filter(|c| c.ch == ' ').count(); if spaces > 0 { for (a, c) in adv.iter_mut().zip(line_cells) {