Keep Thai distributed text rendering outside this change

This commit is contained in:
Harrison Booth
2026-11-02 22:07:16 -06:00
parent bb417bf98a
commit e4a0c2971b
+1 -1
View File
@@ -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 | Align::ThaiDistributed) {
if stretch && !filled && matches!(align, Align::Justify | Align::JustLow) {
let spaces = line_cells.iter().filter(|c| c.ch == ' ').count();
if spaces > 0 {
for (a, c) in adv.iter_mut().zip(line_cells) {